あなたはdocumentationあなたがリンクごとに倹約をインストールする必要があります。
The following are required in order to run the scoring package. [..] Apache Thrift (to run the TCP scoring service)
を:
Installing Thrift
Thrift is required to run the scoring service in TCP mode, but it is not required to run the scoring module. The following steps are available on the Thrift documentation site at: https://thrift.apache.org/docs/BuildingFromSource .
$ sudo apt-get install automake bison flex g++ git libevent-dev \
libssl-dev libtool make pkg-config libboost-all-dev ant
$ wget https://github.com/apache/thrift/archive/0.10.0.tar.gz
$ tar -xvf 0.10.0.tar.gz
$ cd thrift-0.10.0
$ ./bootstrap.sh
$ ./configure
$ make
$ sudo make install
@EDIT:あなたはどこのフォルダに(実行できるかどう
ご確認くださいこれらのスクリプトがあります)
$ source client_env/bin/activate
$ python -c 'from thrift.transport import TSocket'
あなたが同じ例外を取得した場合、実行してください:
pip install -r client_requirements.txt
をそして再び、スクリプトを実行してみてください。
ありがとうございました。そして、私は詳細に説明できませんでした、申し訳ありません。 –
倹約をインストールしました。私は倹約を使ったrun_tcp_server.shを実行できます。 だから、私はpythonは "thrift.transportインポートTSocketから"コードを行うことはできないと思う。 –
@ H.Doi申し訳ありません私は次のことはしていません - この例を実行した後の正確なエラーは何ですか? –