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?
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
ifgetuserbase()
hasn't been called yet. Default value is~/.local
for UNIX and Mac OS X non-framework builds,~/Library/Python/XY
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.