我有一个装有 Ubuntu 18.04.1 的虚拟机。
python3 --version
表示 3.6.5。
我安装 pip 没有任何失败(看起来像)。 然后我尝试用
安装 steem-pythonpip install steem
但是我失败了,看起来像:
bla bla bla
...
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for scrypt
Running setup.py clean for scrypt
...
^~~~~~~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-0iqf8q/scrypt/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-1dMD0Y-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-0iqf8q/scrypt/
现在我没主意了。有人可以帮我解决这个问题吗?如何安装?
我的目标是与 steem 区 block 链进行交互。
最佳答案
您需要在 ubuntu 上安装 python3-dev(除了 unixodbc-dev),它确实有效。
请确保您已经安装了这些:
$ sudo apt-get install python3-dev
$ sudo apt-get install unixodbc-dev
仅供引用:Python 2.x 用户将需要 python-dev。
关于python - 如何解决 'Error while installing steem-python',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51713955/