Hyperledger sawtooth python中的sawtooth rest api安装错误
到目前为止,我一直在尝试,安装了ubuntu软件包Hyperledger sawtooth python中的sawtooth rest api安装错误,hyperledger-sawtooth,Hyperledger Sawtooth,到目前为止,我一直在尝试,安装了ubuntu软件包 sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update sudo apt-get install python3.6 sudo apt install build-essential automake pkg-config libtool libffi-dev libgmp-dev sudo apt install libsecp256k1-dev sudo
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6
sudo apt install build-essential automake pkg-config libtool libffi-dev
libgmp-dev
sudo apt install libsecp256k1-dev
sudo apt-get install python3.6-dev
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD
sudo add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe'
sudo apt update
sudo apt-get install sawtooth python3-sawtooth-sdk
sudo apt-get install python3-sawtooth-rest-api
然后在virtualenv中,我安装了
pipenv安装锯齿sdk
管道安装锯齿支撑api
收集锯齿波
Error: An error occurred while installing sawtooth_rest_api!
Could not find a version that satisfies the requirement sawtooth_rest_api (from versions: )
No matching distribution found for sawtooth_rest_api
注:
我正在尝试使用sawtooth marketplace,在这段时间里,他们直接连接到验证器,而不是向RESTAPI提交批处理
from sawtooth_rest_api.messaging import Connection
app.config.VAL_CONN = Connection(app.config.VALIDATOR_URL)
将python3 sawtooth sdk安装为python包后,无法在python中导入sawtoth rest api以使sawtooth marketplace正常工作。rest api位于包
python3 sawtooth rest api
我会先安装Sawtooth:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 8AA7AF1F1091A5FD
sudo add-apt-repository 'deb http://repo.sawtooth.me/ubuntu/1.0/stable xenial universe'
sudo apt update
aptitude install sawtooth python3-sawtooth-*
有关详细安装信息,请参阅