[英]What is the difference between using pip3 vs pip when running python3 virtualenv
I am running python3 inside a virtualenv which I created as follows 我在我创建如下的virtualenv内运行python3
==> python3 -m venv venv
==> source venv/bin/activate
==> python
Python 3.6.5 (default, Apr 25 2018, 14:23:58)
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
My web-app has a requirements file with the python package dependencies 我的网络应用有一个带有python软件包依赖项的需求文件
What is the difference between using pip3 vs pip to install the dependencies 使用pip3和pip安装依赖项有什么区别
ie 即
==> pip3 install -r requirements
vs VS
==> pip install -r requirements
pip2
is python2 and pip3
is python3. pip2
是python2,而pip3
是python3。 Use the whereis pip
command to determine where the executables are located, but if you are in a python3 virtualenv, pip
is most certainly equivalent to pip3
. 使用whereis pip
命令来确定可执行文件的位置,但是如果您在python3 virtualenv中,则pip
肯定等同于pip3
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.