python中的锯齿齿api安装错误

时间:2018-09-04 19:24:43

标签: 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 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安装sawtooth-sdk     pipenv安装sawtooth_rest_api     收集sawtooth_rest_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

注意: 我正在尝试使用锯齿市场,在这种情况下,他们直接连接到了验证器,而不是将批处理提交给其余的api。

 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工作。

1 个答案:

答案 0 :(得分:0)

REST API在软件包python3-sawtooth-rest-api

我会先安装锯齿:

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-*

有关详细的安装信息,请参见