pythoneasyinstall安装第三方库_【Python使用】Python安装第三方包(easy_install和pip工具)...

本文是对python的第三方包/模块的安装的说明,官方下载第三方包的地址为:https://pypi.org/。

1.工具安装部署

1.1 setuptools安装部署(easy_install)

easy_install是由PEAK(Python Enterprise Application Kit)开发的setuptools包里带的一个命令,它用来自动地从http://pypi.python.org/simple/来安装egg包。安装好setuptools就可以使用easy_install命令安装第三方包或模块了。

(1)将安装包上传到/software目录后,执行如下命令安装:

cd /software

unzip setuptools-41.0.1.zip

cd setuptools-41.0.1

python setup.py install

(2)更改默认easy_install命令为最新安装版本(Python安装目录假设为/usr/local/python3安装版本为3.6.8)

#查找easy_install的安装路径 一般为:/usr/bin/easy_install

whereis easy_install

#备份原有文件,并建立新的软连接

mv /usr/bin/easy_install /usr/bin/easy_install_bak

ln-s /usr/local/python3/bin/easy_install /usr/bin/easy_install #/usr/local/python3为python安装目录

(3)查看当前easy_install的版本,确认安装成功

easy_install --version

setuptools包安装目录为&#x

你可能感兴趣的:(pythoneasyinstall安装第三方库_【Python使用】Python安装第三方包(easy_install和pip工具)...)