Python 3.x iconservice包的pip3安装错误

Python 3.x iconservice包的pip3安装错误,python-3.x,pip,python-3.7,Python 3.x,Pip,Python 3.7,我正在尝试按照本教程的说明$sudo pip3安装iconservice: 我在运行OS-X 我收到以下错误消息,我不确定发生了什么。我曾按照其他地方的指示处理过CFLAG,但没有任何变化 35 warnings and 4 errors generated. error: command 'clang' failed with exit status 1 ---------------------------------------- 它看起来像是要安装在系统上的iconservice软

我正在尝试按照本教程的说明
$sudo pip3安装iconservice

我在运行OS-X

我收到以下错误消息,我不确定发生了什么。我曾按照其他地方的指示处理过CFLAG,但没有任何变化

35 warnings and 4 errors generated.
error: command 'clang' failed with exit status 1

----------------------------------------

它看起来像是要安装在系统上的
iconservice
软件包

Building wheel for secp256k1 (setup.py) ... error
ERROR: ...
ERROR: 0.29.1
Using bundled libsecp256k1
...
Failed to build secp256k1
对于Linux,只需按照以下步骤首先安装:

对于Mac OS X,它需要更多的步骤:

# install leveldb
$ brew install pkg-config automake libtool leveldb

# install libsecp256k (from source)
# based on this (https://github.com/bitcoin-core/secp256k1#build-steps)
$ git clone https://github.com/bitcoin-core/secp256k1.git
$ cd secp256k1/
$ ./autogen.sh
$ ./configure
$ make

# install plyvel
# based on this (https://github.com/wbolster/plyvel/issues/66#issuecomment-460094085)
$ mv /Applications/XCode.app /Applications/Xcode_cp.app
$ leveldb_version=$(ls /usr/local/Cellar/leveldb/ | tail -1)
$ CFLAGS="-mmacosx-version-min=10.7 -stdlib=libc++" \
pip install plyvel \
--no-cache-dir \
--global-option=build_ext \
--global-option="-I/usr/local/Cellar/leveldb/${leveldb_version}/include/" \
--global-option="-L/usr/local/lib"
$ mv /Applications/XCode_cp.app /Applications/Xcode.app
$ pip freeze | grep plyvel
plyvel==1.1.0

# download icon-service source
$ git clone https://github.com/icon-project/icon-service.git

# edit the requirements.txt included with the icon-service source
# to update the plyvel version to match what's already installed
# on your machine (from the previous step)
$ cd icon-service
$ vim requirements.txt
$ cat requirements.txt
    ...
    plyvel==1.1.0  <-- I updated this from 1.0.5
    ...

# build and install iconservice from wheels
$ ./build.sh
$ CFLAGS="-mmacosx-version-min=10.7 -stdlib=libc++" \
pip install dist/iconservice-1.3.0-py3-none-any.whl \
--no-cache-dir \
--global-option=build_ext \
--global-option="-I/usr/local/Cellar/leveldb/${leveldb_version}/include/" \
--global-option="-L/usr/local/lib"
#安装leveldb
$brew安装程序包配置自动生成libtool leveldb
#安装libsecp256k(源代码)
#基于此,(https://github.com/bitcoin-core/secp256k1#build-步骤)
$git克隆https://github.com/bitcoin-core/secp256k1.git
$cd secp256k1/
美元/autogen.sh
美元/配置
$make
#安装plyvel
#基于此,(https://github.com/wbolster/plyvel/issues/66#issuecomment-460094085)
$mv/Applications/XCode.app/Applications/XCode\u cp.app
$leveldb|u version=$(ls/usr/local/cillar/leveldb/| tail-1)
$CFLAGS=“-mmacosx版本最小值=10.7-stdlib=libc++”\
pip安装plyvel\
--无缓存目录\
--全局选项=build\u ext\
--全局选项=“-I/usr/local/ceral/leveldb/${leveldb_version}/include/”\
--全局选项=“-L/usr/local/lib”
$mv/Applications/XCode\u cp.app/Applications/XCode.app
$pip freeze | grep plyvel
plyvel==1.1.0
#下载图标服务源
$git克隆https://github.com/icon-project/icon-service.git
#编辑图标服务源中包含的requirements.txt
#更新plyvel版本以匹配已安装的版本
#在您的机器上(从上一步开始)
$cd图标服务
$vim requirements.txt
$cat requirements.txt
...

plyvel==1.1.0嘿,吉诺,谢谢你的回复。我忘了说,我在用OSX。这些依赖项似乎无法与自制软件一起安装。你知道我该怎么做吗?关于虚拟电视的观点。谢谢我已按照说明安装了“$brew安装leveldb autoconf automake pkg config libtool libffi gmp”依赖项btw@user1893110您说得对,
libsecp256k
不能从自制中获得,但您可以从安装。但是,
pip安装iconservice
在。。。我正试图在我的Mac电脑上安装它,但问题有点大。给我一点时间@user1893110我更新了Mac OS X成功安装步骤的答案:)直到现在才有机会登录,但非常感谢您提供了这些详尽的说明:)我稍后会尝试一下
$ sudo apt-get install libleveldb1 libleveldb-dev libsecp256k1-dev
$ pip install iconservice
# install leveldb
$ brew install pkg-config automake libtool leveldb

# install libsecp256k (from source)
# based on this (https://github.com/bitcoin-core/secp256k1#build-steps)
$ git clone https://github.com/bitcoin-core/secp256k1.git
$ cd secp256k1/
$ ./autogen.sh
$ ./configure
$ make

# install plyvel
# based on this (https://github.com/wbolster/plyvel/issues/66#issuecomment-460094085)
$ mv /Applications/XCode.app /Applications/Xcode_cp.app
$ leveldb_version=$(ls /usr/local/Cellar/leveldb/ | tail -1)
$ CFLAGS="-mmacosx-version-min=10.7 -stdlib=libc++" \
pip install plyvel \
--no-cache-dir \
--global-option=build_ext \
--global-option="-I/usr/local/Cellar/leveldb/${leveldb_version}/include/" \
--global-option="-L/usr/local/lib"
$ mv /Applications/XCode_cp.app /Applications/Xcode.app
$ pip freeze | grep plyvel
plyvel==1.1.0

# download icon-service source
$ git clone https://github.com/icon-project/icon-service.git

# edit the requirements.txt included with the icon-service source
# to update the plyvel version to match what's already installed
# on your machine (from the previous step)
$ cd icon-service
$ vim requirements.txt
$ cat requirements.txt
    ...
    plyvel==1.1.0  <-- I updated this from 1.0.5
    ...

# build and install iconservice from wheels
$ ./build.sh
$ CFLAGS="-mmacosx-version-min=10.7 -stdlib=libc++" \
pip install dist/iconservice-1.3.0-py3-none-any.whl \
--no-cache-dir \
--global-option=build_ext \
--global-option="-I/usr/local/Cellar/leveldb/${leveldb_version}/include/" \
--global-option="-L/usr/local/lib"