Debianにctrlappをインストールする方法は?

Debianにctrlappをインストールする方法は?

インストールしようとしていますctrlコマンドラインクライアントDebian 8 マシンで。

インストール手順に従ってPython、pipをインストールしてから(pip経由で)cctrlをインストールしました。

apt-get install python
apt-get install python-pip
pip install cctrl

これでコンソールコマンドcctrlappとして存在します。cctrluserただし、これらのいずれかを実行しようとすると、次のエラーが発生します。

ImportError: No module named Crypto.PublicKey

それで、欠けているモジュールをインストールしてみました。

pip install pycrypto

ただし、別のエラーが発生します(参照:pip.logこの点に関する文書)

InstallationError: Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-nQPN20/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-JYTF94-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-nQPN20/pycrypto

誰が助けることができますか?何が欠けていますか?

ベストアンサー1

Python.h問題を解決するには、pycryptoのコンパイルに必要なヘッダファイルを含むpython-devパッケージをインストールしてください。

apt-get install python-dev

しかし、python-cryptoパッケージを直接簡単にインストールすることもできます。

apt-get install python-crypto

おすすめ記事