Question in title. How do I figure out (using terminal) which version of python pip is installing to (Ex. Python 2.7 or Python 3.6). I am looking to use Terminal on MacOS.
Use
pip -V
which will tell you the PIP version and the python version. If you'd like to decide which python version to install to:
$ pip2.6 install otherpackage
$ pip2.7 install mybarpackage
Try the Pip --version command to verify the pip version.
$ pip --version
if you want to know the version of any library installed, try:
$ pip list
if you want to know the python version, just simply run in the command line:
$ python -v
这很容易在 Google 上使用,但为了节省您几秒钟的时间:
python --version
使用此命令找出安装的 pip 版本:
pip list | grep pip
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.