目录
问题描述:python2.7.5 安装python库时出现:-bash: pip: command not found
问题描述:python2.7.5 安装python库时出现:-bash: pip: command not found
原因:pip没有安装
解决:安装pip
1.先安装setuptools
win 下载地址:https://pypi.python.org/pypi/setuptools#downloads
liunx : wget https://files.pythonhosted.org/packages/b5/96/af1686ea8c1e503f4a81223d4a3410e7587fd52df03083de24161d0df7d4/setuptools-46.1.3.zip
下载完,解压,进入到解压后的文件所在的目录执行命令:python setup.py install
2.安装pip
win:https://pypi.python.org/pypi/pip#downloads
liunx : wget https://files.pythonhosted.org/packages/d1/05/059c78cd5d740d2299266ffa15514dad6692d4694df571bf168e2cdd98fb/pip-20.1.tar.gz
下载完,解压,进入到解压后的文件所在的目录执行命令:python setup.py install