简体   繁体   中英

Where "python pip install" command files to be installed?

I install some packages with pip command and when use pip freeze command shows some packages that is install

pip freeze

antlr4-python3-runtime==4.5.2.1
django==1.9.4
django-realtime==1.1
pymssql==2.1.2

I want to know where is location of this modules in Windows ?

I installed them with: python setup.py install

I search in python`s installation directory but not found anything

From this in python documentation:

Python usually stores its library (and thereby your site-packages folder) in the installation directory. So, if you had installed Python to C:\\Python\\, the default library would reside in C:\\Python\\Lib\\ and third-party modules should be stored in C:\\Python\\Lib\\site-packages.


If you want to install your packages in a different directory, use:

pip install --install-option="--prefix=$PREFIX_PATH" package_name

Use can use also --ignore-installed to force all dependencies to be reinstalled.

see other options

Having installed modules using pip on windows, they should be in the installation directory, in "Lib/site-packages" directory. So suppose you have installed Python at

C://python27_x64

then those modules should be at

C://python27_x64/Lib/site-packages/

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM