1.套件中心安装Python
安装Python3
2.补全Python3组件
ssh登录NAS,切换到root用户,运行如下命令:
[root@bb ~]# wget https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
[root@bb ~]# wget -q http://peak.telecommunity.com/dist/ez_setup.py
[root@bb ~]# python ez_setup.py
[root@bb ~]# wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
[root@bb ~]# tar -xvzf 1.5.5.tar.gz
[root@bb ~]# cd pip-1.5.5/
[root@bb pip-1.5.5]# python setup.py install
[root@bb pip-1.5.5]# pip install requests
先安装ez_setup.py,然后再安装pip,否则会报错
网友评论