pip是常用的python包管理工具,用python的同学,都离不开pip。
第一种 在系统自带的python2.7的路径下
1、pip是python的包管理工具,在Python2.7的安装包中,easy_install.py是默认安装的,而pip需要我们手动安装。
打开终端:
sudo easy_install pip
第二种 在python3的路径下
curl https://bootstrap.pypa.io/get-pip.py | python3
安装后
查看版本
pip3 --version
查看相应的包
pip3 list
安装和更新pip
pip3 install -U pip
解决方法:
如果你是python2 则是 :pip --default-timeout=100 install Package
如果你是python3 则是: pip3 --default-timeout=100 install Package
如果加上镜像:pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu
Package 通常用第三方包的名字来替换,例如pyqt5