python - 如何解决 'Error while installing steem-python'

标签 python python-3.x ubuntu steemit

我有一个装有 Ubuntu 18.04.1 的虚拟机。

python3 --version 表示 3.6.5。

我安装 pip 没有任何失败(看起来像)。 然后我尝试用

安装 steem-python
pip 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/

相关文章:

c - 如何使用 posix_memalign 在 c 中初始化结构

python - 从装饰类继承

python - mysql 连接与 python 中的并发.futures 不能很好地配合

python - 使用 Azure Function for python 和 ActiveDirectoryMSI 身份验证在 Azure SQL Server 数据库连接中出错

html - 使用 scrapy 和 css 从 HTML 中提取特定值

Ubuntu 中的 Python 代码找不到模块 mayavi mlab

Python - 应用函数在 Group by 组中填充 N/A

python - 无法获取 dicom 图像以在 python 中显示

python - Node与Python之间的通信

c - 从 sublime 2.02 运行 C 程序