安装好python3.x之后,我们还需要安装pip3,这个是用于获取和安装python组件的工具。这里参考了
下面的文章:
install pip3 for python 3.x https://www.cnblogs.com/wenchengxiaopenyou/p/5709218.html
由于安装也没有那么顺利,所以也记录过程如下:
先安装setuptools:
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-19.6.tar.gz
tar -zxvf setuptools-19.6.tar.gz
cd setuptools-19.6
python3 setup.py build
python3 setup.py install
再安装pip3:
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-8.0.2.tar.gz
tar -zxvf pip-8.0.2.tar.gz
cd pip-8.0.2
python3 setup.py build
python3 setup.py install
我安装之后,发现pip、pip3命令均不能生效,于是建立了一个软连接:ln -s /usr/local/python3/bin/pip /usr/bin/pin,再运行pip,提示“ImportError: cannot import name HTTPSHandler”,后来通过搜索,参考下面的文章:
ImportError: cannot import name HTTPSHandler http://blog.csdn.net/yabingshi_tech/article/details/50439142
运行下面的命令:
yum install openssl -y
yum install openssl-devel -y
安装完成后,重新安装python:
cd python3.3
./configure
make
make install
安装完成之后,pip命令仍然报错,但是发现pip3命令意外的OK了,并且之前python3命令不能运行,现在也可以了。
BTS交易机器人(1)-选购VPS(BTS trading bot) https://steemit.com/cn/@brysj22952/bts-1-vps-bts-trading-bot
BTS交易机器人(2)-运行环境(BTS trading bot) https://steemit.com/cn/@brysj22952/bts-2-bts-trading-bot
BTS交易机器人(3)-Python升级(BTS trading bot) https://steemit.com/cn/@brysj22952/bts-3-python-bts-trading-bot
BTS交易机器人(4)-把Vim改造成简易Python编辑器(BTS trading bot) https://steemit.com/cn/@brysj22952/bts-4-vim-python-bts-trading-bot