Python packages installation directory

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Python packages installation directory

Post by Jasper »

Using Fossapup64-95.

I recently downloaded and updated some Python packages and was slightly unsure as to where they should be installed.

Here is an example downloading/installing Gdown ..... requirements Python 3.8

Image

I can check to see that the package has been installed successfully via terminal

Code: Select all


pip list > installed_packages.txt

However, if I ask which version is installed it informs me that it is an older build

Image

Is the reason for this is that there is no Pip configuration file?

Image

I profess, I do not know the inner workings of how this is selected.

So, I set a configuration file via terminal:

Code: Select all


pip config set global.target /usr/local/lib/Python/3.8/dist-packages

This creates a directory in /root named pip

Image

I ran the command again but it still reports the same :cry:

I do know that using the pip3 command will install in the Python 2 directory instead of the default one.

Post Reply

Return to “Users”