体验“在Ubuntu 16上配置Python和Steem开发环境“ by liuzg

View this thread on steempeak.com
· @liuzg ·
$1.44
体验“在Ubuntu 16上配置Python和Steem开发环境“
<center><img src="https://ipfs.busy.org/ipfs/QmQYqd91dQKfVswTApg5KFkAU7WDCnbfj5SYSeU4sSQF7S" alt="ubuntu-python-steem.png" /><br/><br/><a href="https://cn.yuxifan.com/setup-python-steem-development-environment-ubuntu16/">图源:范羽西博客</a></center>

闲来无事在网上看到@yuxi在两年前写的blog<a href="https://cn.yuxifan.com/setup-python-steem-development-environment-ubuntu16/">《在Ubuntu 16中配置Python和Steem开发环境》</a>,由于好奇,我就试着按blog中记录的步骤操作了一下。

这毕竟是个两年前的旧帖子,时移世易,很多事情都发生了变化。

当我按照原帖子的步骤操作时,出现了一些问题。

<h2>一、pip install报错的问题</h2>

到 了“安装进行Steem开发需要的软件库”的时候,执行“pip3 install wheel “这个命令时,shell出现以下提示:

<blockquote>
  requests.exceptions.InvalidSchema: Missing dependencies for SOCKS support.

</blockquote>

<img src="https://ipfs.busy.org/ipfs/QmUEDCBdeEcEEcyEjgxNXNk5ugp9bsoby8Uk1a9C1BZZer" alt="2019-05-23 12-56-20屏幕截图.png" /><br/>

这应该是因为我开启了网络代理的关系,但是如果不开启网络代理上个“外网”都很困难。

出了这个问题,我就google搜索了一下,看到了另一个blog:<a href="http://huanyouchen.github.io/2019/02/25/pip-install-Missing-dependencies-for-SOCKS-support/">《pip install报错:Missing dependencies for SOCKS support解决方法》</a>,在这里找到了解决方案。

解决了pip install报错的问题,接下来的操作非常顺畅,一步步完成了“在Ubuntu 16中配置Python和Steem开发环境”。

虽然完成了开发环境的配置,但是在测试的时候还是问题不断。

<h2>二、找不到模块(ModuleNotFoundError)的问题。</h2>

将@yuxi帖子里“测试以下”的内容保存到test.py文件然后执行,出现了以下错误:

<blockquote>
  ModuleNotFoundError: No module named 'grapheneapi.graphenewsrpc'

</blockquote>

<img src="https://ipfs.busy.org/ipfs/QmSSP2k3VvNBaZX3cDfZWy6ydKdWWniT8JG8t5wSj2i4aa" alt="2019-05-23 13-15-21屏幕截图.png" /><br/>

到此,体验结束,最终“在Ubuntu 16中配置Python和Steem开发环境“没有成功! <br />
****
<center>欢迎关注@cn-malaysia,支持马来西亚中文博客!<br />![](https://ipfs.busy.org/ipfs/QmTUwx1vpfXtJ2ZFubAw5d31uNpPMkMmpvjpNxDsYa23dz)</center>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 285 others
properties (23)
post_id75,194,106
authorliuzg
permlinkubuntu16pythonsteem-gavm4ocp9i
categorycn
json_metadata{"community":"steempress","app":"steempress\/1.4","tags":["cn","cn-malaysia","cn-stem","sct","steempress"],"original_link":"http:\/\/liuzg.vornix.blog\/liuzg\/%e4%bd%93%e9%aa%8c%e5%9c%a8ubuntu-16%e4%b8%8a%e9%85%8d%e7%bd%aepython%e5%92%8csteem%e5%bc%80%e5%8f%91%e7%8e%af%e5%a2%83\/"}
created2019-05-23 05:29:00
last_update2019-05-23 05:29:00
depth0
children8
net_rshares2,752,209,602,679
last_payout2019-05-30 05:29:00
cashout_time1969-12-31 23:59:59
total_payout_value1.075 SBD
curator_payout_value0.370 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,660
author_reputation508,940,095,151,809
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries
0.
accountsteempress
weight1,500
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars0
author_curate_reward""
vote details (349)
@honoru ·
留言
👍  , ,
properties (23)
post_id75,194,286
authorhonoru
permlinkre-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t053557471z
categorycn
json_metadata{"tags":["cn","sct"],"app":"steemcoinpan\/0.1"}
created2019-05-23 05:36:00
last_update2019-05-23 05:36:00
depth1
children0
net_rshares15,189,673,842
last_payout2019-05-30 05:36:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2
author_reputation562,341,325,190,349
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (3)
@zerofive ·
$0.02
等着你写配置成功,😄

Posted using [Partiko Android](https://partiko.app/referral/zerofive)
👍  ,
properties (23)
post_id75,194,623
authorzerofive
permlinkzerofive-re-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t054556119z
categorycn
json_metadata{"app":"partiko","client":"android"}
created2019-05-23 05:45:57
last_update2019-05-23 05:45:57
depth1
children1
net_rshares42,466,516,393
last_payout2019-05-30 05:45:57
cashout_time1969-12-31 23:59:59
total_payout_value0.019 SBD
curator_payout_value0.005 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length81
author_reputation2,110,787,163,700
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (2)
@liuzg ·
这个好难吧?

我只会baidu 或在 google ,然后照着操作。
properties (22)
post_id75,194,851
authorliuzg
permlinkre-zerofive-zerofive-re-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t055134887z
categorycn
json_metadata{"community":"busy","app":"busy\/2.5.6","format":"markdown","tags":["cn"],"users":[],"links":[]}
created2019-05-23 05:51:36
last_update2019-05-23 05:51:36
depth2
children0
net_rshares0
last_payout2019-05-30 05:51:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length35
author_reputation508,940,095,151,809
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@cnbuddy ·
吃了吗?想来玩目前STEEM上最火爆的drugwars游戏吗?还在等待什么?赶快加入战斗吧![drugwars.io](https://drugwars.io/i/davidchen)如果不想再收到我的留言,请回复“取消”。
properties (22)
post_id75,194,924
authorcnbuddy
permlinkre-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t055424646z
categorycn
json_metadata{}
created2019-05-23 05:54:24
last_update2019-05-23 05:54:24
depth1
children0
net_rshares0
last_payout2019-05-30 05:54:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length112
author_reputation-1,405,328,253,928
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@sct.biz ·
good day!! #sct
👍  
properties (23)
post_id75,218,668
authorsct.biz
permlinkre-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t160347532z
categorycn
json_metadata{"tags":["cn","sct"],"app":"steemcoinpan\/0.1"}
created2019-05-23 16:03:54
last_update2019-05-23 16:03:54
depth1
children1
net_rshares12,049,822,106
last_payout2019-05-30 16:03:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length15
author_reputation2,204,617,920,636
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@liuzg ·
thank you!

have a lucky !
properties (22)
post_id75,218,900
authorliuzg
permlinkre-sctbiz-re-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190523t160825151z
categorycn
json_metadata{"tags":["cn","sct"],"app":"steemcoinpan\/0.1"}
created2019-05-23 16:08:30
last_update2019-05-23 16:08:30
depth2
children0
net_rshares0
last_payout2019-05-30 16:08:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length26
author_reputation508,940,095,151,809
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemstem ·
re-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190524t010012269z
<div class='text-justify'> <div class='pull-left'> <center> <br /> <img width='200' src='https://res.cloudinary.com/drrz8xekm/image/upload/v1553698283/weenlqbrqvvczjy6dayw.jpg'> </center>  <br/> </div> 

This post has been voted on by the **SteemSTEM** curation team and voting trail. It is elligible for support from <b><a href='https://www.steemstem.io/#!/@curie'>@curie</a></b>.<br /> 

If you appreciate the work we are doing, then consider supporting our witness [**stem.witness**](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=stem.witness). Additional witness support to the [**curie witness**](https://steemconnect.com/sign/account_witness_vote?approve=1&witness=curie) would be appreciated as well.<br /> 

For additional information please join us on the [**SteemSTEM discord**]( https://discord.gg/BPARaqn) and to get to know the rest of the community!<br />

Please consider setting <b><a href='https://www.steemstem.io/#!/@steemstem'>@steemstem</a></b> as a beneficiary to your post to get a stronger support.<br />

Please consider using the <b><a href='https://www.steemstem.io'>steemstem.io</a></b> app to get a stronger support.</div>
properties (22)
post_id75,238,081
authorsteemstem
permlinkre-liuzg-ubuntu16pythonsteem-gavm4ocp9i-20190524t010012269z
categorycn
json_metadata{"app":"bloguable-bot"}
created2019-05-24 01:00:15
last_update2019-05-24 01:00:15
depth1
children0
net_rshares0
last_payout2019-05-31 01:00:15
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,174
author_reputation229,673,617,633,863
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steem-ua ·
#### Hi @liuzg!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your **UA** account score is currently 2.686 which ranks you at **#13916** across all Steem accounts.
Your rank has improved 424 places in the last three days (old rank 14340).

In our last Algorithmic Curation Round, consisting of 375 contributions, your post is ranked at **#260**.
##### Evaluation of your UA score:

* Only a few people are following you, try to convince more people with good work.
* The readers appreciate your great work!
* Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!


**Feel free to join our [@steem-ua Discord server](https://discord.gg/KpBNYGz)**
properties (22)
post_id75,395,431
authorsteem-ua
permlinkre-ubuntu16pythonsteem-gavm4ocp9i-20190527t110728z
categorycn
json_metadata{"app":"beem\/0.20.19"}
created2019-05-27 11:07:30
last_update2019-05-27 11:07:30
depth1
children0
net_rshares0
last_payout2019-06-03 11:07:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length764
author_reputation23,203,609,903,979
root_title"体验“在Ubuntu 16上配置Python和Steem开发环境“"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000