BTS交易机器人(5)-安装pip3(BTS trading bot)

in #cn7 years ago

安装好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

Sort:  

The Vote For Your Awesome Post Has Just Arrived!


This post has been voted with the use of SteemiTag. Feel free to upvote this comment if you’d like to express your support for our cause. Conversely, if you don’t want to receive any more votes from SteemiTag, please respond to this comment by writing NOVOTES.

SteemiTag is an innovative program that helps users increase their gains in the curation rewards by voting on posts that are likely to get high payouts. It maximizes the chance of a user to be rewarded through an accurate selection algorithm that works 24/7 and eliminates "no rewards" problem for users with low Steem Power. You can participate in our program by clicking on this link and confirming your delegation. Your rewards will be sent to you in the form of weekly dividends. Thank you and keep up with your great work!

Coin Marketplace

STEEM 0.17
TRX 0.16
JST 0.028
BTC 76338.99
ETH 2965.83
USDT 1.00
SBD 2.62