0

On Linux, how do I see the list of all python modules that are installed by a specific user.

Where does

pip install --user install <module>

install?

Is there a way to identify modules installed by a specific user using tools other than pip except the ones that are individually downloaded which could be anywhere?

1
  • In the future, please post multiple questions separately
    – wnnmaw
    Mar 18, 2014 at 20:20

2 Answers 2

2

The --user switch, by default, installs into the site.USER_BASE location:

Path to the base directory for the user site-packages. Can be None if getuserbase() hasn’t been called yet. Default value is ~/.local for UNIX and Mac OS X non-framework builds, ~/Library/Python/X.Y for Mac framework builds, and %APPDATA%\Python for Windows.

You can override this by setting the PYTHONUSERBASE environment variable, as detailed in the User installs” section of the pip manual.

0

You should be able to see all your python modules (and versions) like this (docs here):

C:\Users\joe>pip freeze
Cython==0.19.2
Flask==0.10.1
Jinja2==2.7.1
MDP==3.3
MarkupSafe==0.18
PIL==1.1.7
...

Looks like Mr. Pieters has answered your other question

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.