pip在哪里安装其软件包? [英] Where does pip install its packages?

查看:126
本文介绍了pip在哪里安装其软件包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我激活了一个已安装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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆