I am unsure of where to go from here. The output from earlier simple commands implies some sort of error. I can't speak as to when that error started, but it was potentially before you even set off on this. Otherwise, this might have gone smoothly.
It might be worth restoring to an old backup or starting anew with what you know now. It's a pain but you're getting environment variable errors when running an ls command. That's not normal. I don't even know what would cause that.
Your honest response is appreciated. When I ran Windows years ago, I kept backups but they always failed me when needed most. My system is not backed up. I will consider starting anew but would like to try one more, as Marcin wrote about an install using snap.
I entered the command in Terminal, and it returned this:
sudo: snap: command not found
Marcin wrote how to copy paste in Terminal. I had tried the usual ways with which I am very familiar but it wasn't working. Using his instructions it does, so now I can copy from Terminal when I am on the Lenovo.
Can someone help me with the snap command?
Is it possible I have just failed to save the changes in Terminal and that's why some of the issues appear?
I created a PYGPT folder under Downloads, and extracted the downloaded pygpt archive in it. Here's what Marcin graciously wrote:
***
Hi Gary, sorry, but I can’t help you with all of this from such absolute basics, I just don't have the time.
1)
python and
python3 are interchangeable, depending on how they appear in your system. You should use either one or the other command. Similarly with
pip - you may have it in your system as either
pip or
pip3, so if somewhere it is mentioned:
pip install...
then you must execute:
pip3 install...
...if in your system, it appears under the command
pip3. Or vice versa.
2) To unzip an archive in Linux, just right-click on it and there will be an option "Extract files" or something like that.
3) You can do copy/paste in the Terminal, with mouse right-click options for copy and paste or at the top of Terminal window in the
Edit menu (you will find Copy and Paste there).
4)
source venv/bin/activate must be performed in the directory where you previously created the virtual environment, also
venv/bin/activate is only an example, it must match the name used during the creation of the environment, so if for instance, you created it with:
python -m venv my_env
then you will have to activate it using:
source my_env/bin/activate
5) I think the simplest option in your case would be to either download and extract the precompiled version from the archive and just run it without installation, or to install it by using Snap. You can do so by typing the following command in the terminal:
sudo snap install pygpt
After installation this way, you will have PyGPT available as icon with the name "PyGPT Desktop AI Assistant" in the "Start" menu, under Accessories.
Hope this helps.
Best regards,
Marcin