Help! Steem python library cannot be installed on Windows 7 | 求助:windows 7 无法安装 python steem

in #cn-programming6 years ago

I am failing in installing python steem on Windows 7. Could anyone do me a favor and help?

I followed the simple instruction by @trentie, i.e. installing Python 3.6 Anaconda and ujson-1.35-cp36-cp36m-win32.whl:

pip install ujson-1.35-cp36-cp36m-win32.whl
pip install steem

failed. It was said that I had to upgrade pip. Then I did it :

python -m pip install --upgrade pip
pip install steem

failed again. The error message said that I had to install Visual Studio Build Tools. Then I downloaded and installed it, and run pip install steem again. Failed. The error message was the same as @pavel-p had :

Following @ideagenerator's post I installed OpenSSL. However, I still failed with the same error as in the figure above.

Now I do not know what to do.

Could anyone do me a favor and help?


求助!windows 7 安装 Steem python 库失败!

我安装了 Python 3.6 Anaconda,ujson, Visual Studio Build Tools, OpenSSL,然后安装 steem 库(详见上面的代码),仍然失败,错误信息见上图。

哪位大侠救我?拜谢!

Sort:  

wow! Great! Thanks a lot!

我曾经也花过很多时间折腾在win7 安装steem python ,但最终还是失败告终了,还是转到ubuntu 。
你这个错误我好像没见过哈, 可能方法不一样。
在win上安装steem python 有很多坑的,其中一个是scrypt,我遇到的也是这个坑,以下引用可能就是原因了把:

Unfortunately installing steem-python on Windows is incredibly hard because it requires Python 3.6. The problem with this is that steem-python requires another package called scrypt, and this package is only available in a pre-compiled form for Windows when using Python 3.5 or below. This means that scrypt is near impossible to install on Windows when using Python 3.6.

https://utopian.io/utopian-io/@amosbastian/how-to-install-steem-python-the-official-steem-library-for-python

这么说来,还是别折腾了,乖乖待在ubuntu

我就从来没考虑过在Windows上使用Python,也建议你还回到Ubuntu上吧

好吧。心里好苦。

有时间的还是可以折腾的,说不定还真有解决方案:D

专家给解决了吧,我这业余的跟风就是了

this is not true anymore, i uploaded wheels for 3.6.

需要安装一个Visual Studio

装了,文中有述,仍然有问题

1.安装VS2015
2.添加VC环境变量,设置用户环境变量,是用户环境变量,不是系统环境变量


变量名:VCINSTALLDIR
(变量值为vs安装路径下的VC,默认是这个)
变量值:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC

  1. win+R运行cmd,执行命令set CL=/FI”%VCINSTALLDIR%\INCLUDE\stdint.h” %CL%

4.pip install steem

我是这样装上了,虽然后面又有别的问题了。

谢谢。等你把后面的问题解决了,我再跟着你学。我这一拨已经折腾够了,回 linux 去也。

我在windows上安装了好几次都失败,最后在ubuntu上很顺利的安装好了。也想知道答案

我也是。想从ubuntu挪到win。

Coin Marketplace

STEEM 0.25
TRX 0.11
JST 0.032
BTC 61618.64
ETH 3009.45
USDT 1.00
SBD 3.78