BTS交易机器人(6)-安装uptick(BTS trading bot)

in cn •  7 years ago 

一切就绪,就开始安装BTS交易Python组件了。首先我们安装uptick,其项目网站:https://github.com/xeroc/uptick 。运行pip3 install uptick命令即可,在我的环境上安装顺利,没有出现什么问题。

接下来运行uptick命令,提示“ImportError: cannot import name 'byte_string'”,这个我百度了好久,没有找到解决办法,只好科学上网,在谷歌中搜索,找到了下面这篇帖子:https://github.com/home-assistant/home-assistant/issues/2411 ;按照这个帖子的办法运行下面的命令:

pip3 uninstall pycrypto
pip3 uninstall pycryptodome
pip3 install pycryptodome

果然搞定了。

再次运行uptick命令,出现新的错误“No module named '_sqlite3'”,又找到一篇帖子 http://blog.csdn.net/sEgiraffe/article/details/76380802 (python3.5中,import sqlite3 出现 no module named _sqlite3的解决方法 ),按照帖子中的方法1,运行下面的命令:

yum -y install sqlite-devel
cd Python-3.6.3
./configure
make
make install

再运行uptick命令,没有再提示错误了,成功了!

唉,在Linux下工作就得有折腾精神,会出现很多莫名其妙的问题,解决办法也只能到处查找,一一尝试,说不定碰巧就搞定了,我在想,这种模式是很耗费时间的,有没有办法解决此问题呢?Docker技术能否解决此问题呢?

=============================================================================================
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
BTS交易机器人(5)-安装pip3(BTS trading bot) https://steemit.com/cn/@brysj22952/bts-5-pip3-bts-trading-bot

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!