pip在哪里安装其软件包? [英] Where does pip install its packages?
问题描述
我激活了一个已安装pip的virtualenv.我做到了
I activated a virtualenv which has pip installed. I did
pip3 install Django==1.8
和Django成功下载.现在,我想打开Django文件夹.文件夹在哪里?通常,它将在下载"中进行,但是我不确定如果在virtualenv中使用pip将其安装在哪里.
and Django successfully downloaded. Now, I want to open up the Django folder. Where is the folder located? Normally it would be in "downloads" but I'm not sure where it would be if I installed it using pip in a virtualenv.
推荐答案
pip 与 virtualenv 一起使用时,通常会将软件包安装在路径<virtualenv_name>/lib/<python_ver>/site-packages
中.
pip when used with virtualenv will generally install packages in the path <virtualenv_name>/lib/<python_ver>/site-packages
.
例如,我使用 Python 2.7创建了一个名为 venv_test 的测试虚拟环境,并且django
文件夹位于venv_test/lib/python2.7/site-packages/django
中.
For example, I created a test virtualenv named venv_test with Python 2.7, and the django
folder is in venv_test/lib/python2.7/site-packages/django
.
这篇关于pip在哪里安装其软件包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!