2017-01-05 9 views
17

終了ステータスで失敗した私は、「学術」​​のパッケージをインストールしようとしたが、私はこのエラーを受信し続ける:「コマンドはx86_64-のlinux-gnuの-gccの」1

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o 
build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory 
compilation terminated. 

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 


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

はすでに、次の記事で解決方法を試してみましたそれは仕事をdidntの:

pip install lxml error

+0

あなたはどのようなコマンドを実行していますか? –

+2

ssl devパッケージのファイルがありません: 'sudo apt-get update && sudo apt-get install libssl-dev'を入手してください。他の依存関係が存在する可能性があります。 – tdelaney

+0

pip install学術@jmd_dk – msmazh

答えて

44

私は同じ問題を抱えていました。 この1つは私を助け:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev 

あなたがのpython3を使用している場合、lib32ncurses5-devのをインストールしpython-devpython3-dev

+2

FYI:私は_exact_同じ問題がありました。&libssl-devをインストールするだけで、これを修正するのに十分でした。 'apt'から' python-dev'を入手するのは良い考えです。 * Anacondaやその他のPython環境エンジンを使用している場合は、python-devをインストールして$ PATHを台無しにしないように注意してください。 –

+0

@Dana Friedlander:それは私の問題を解決しました。クール..ありがとう! –

0

を交換してみてください。

sudo apt-get install lib32ncurses5-dev 
関連する問題