CentOS6离线安装pip和setuptools

报错:

-bash: pip: command not found 

ImportError: No module named setuptools

1、安装setuptools

#wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
#tar zxvf setuptools-0.6c11.tar.gz
#cd setuptools-0.6c11
#python setup.py install

 

2、安装pip

#wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate
# tar -xzvf pip-1.5.4.tar.gz
# cd pip-1.5.4
# python setup.py install

 

posted @ 2020-10-29 17:09  abm  阅读(769)  评论(0编辑  收藏  举报