loader image

Reply To: Terminal GPT [Linux || MacOS]

#7197
thumbtak
Keymaster

If you are having issues with the above, like I was having in a VM of Linux, do the following …

THIS IS ONLY AS A LAST OPTION AS IT IS NOT CONVENIENT.

1. Ensure You Are Using a Virtual Environment

First, create and activate a virtual environment to avoid issues with system-wide package installations.

Create a Virtual Environment:

$ python3 -m venv tgpt-env

Activate the Virtual Environment:

$ source tgpt-env/bin/activate

2. Upgrade pip

Ensure you have the latest version of pip, as older versions may have issues with some packages.

Upgrade pip:

$ pip install --upgrade pip

3. Install the python-tgpt Package

Try installing python-tgpt with all optional dependencies. If you encounter issues, you might want to check if python-tgpt supports extras directly in the installation command.

Install python-tgpt:

$ pip install --upgrade "python-tgpt[all]"

Here is a script that will start Terminal GPT in an interactive environment (though a temp virtual environment), each time …

#!/bin/bash
python3 -m venv tgpt-env
source tgpt-env/bin/activate
pip install --upgrade pip
pip install --upgrade "python-tgpt[all]"
python -m pytgpt interactive ""

Save the file as tgpt.sh and run the follow command, to execute the script …

$ sudo bash tgpt.sh

  • This reply was modified 4 months, 3 weeks ago by thumbtak.
  • This reply was modified 4 months, 2 weeks ago by thumbtak. Reason: Script updated
  • This reply was modified 4 months, 2 weeks ago by thumbtak. Reason: Fixed the failed script
TAKs Shack