インストールのpythonのUbuntu 16は、依存エラーが表示されます: 'コマンドのi686-linuxの - GNU-gccの' 終了ステータス1で失敗しました

免責事項:この記事はブロガーオリジナル記事ですが、許可ブロガーなく再生してはなりません。https://blog.csdn.net/qq_32281471/article/details/91343346

問題

Ubuntuの次のエラーでPythonの依存関係をインストールする場合

build/temp.linux-i686-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: No such file or directory
  compilation terminated.
  error: command 'i686-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for cryptography
  Running setup.py clean for cryptography
Failed to build cryptography



i686-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-i686-3.5/_openssl.c -o build/temp.linux-i686-3.5/build/temp.linux-i686-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
    build/temp.linux-i686-3.5/_openssl.c:498:30: fatal error: openssl/opensslv.h: No such file or directory
    compilation terminated.
    error: command 'i686-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-rbtstpsj/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1vor2x2o-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-rbtstpsj/cryptography/

ここに画像を挿入説明
ここに画像を挿入説明

ソリューション

実行

apt install python3 python-dev python3-dev \
      build-essential libssl-dev libffi-dev \
      libxml2-dev libxslt1-dev zlib1g-dev \
      python-pip

バッグシステムがインストールされたら、インストールは正常に依存パイソンことができます

国民の関心番号lxfriday_xyz、智ソング技術情報

lxfriday_xyz

おすすめ

転載: blog.csdn.net/qq_32281471/article/details/91343346