pycyrpto安装“命令'gcc'失败,退出状态为1”错误Mac OS conda env

时间:2019-01-28 14:02:29

标签: python

我在安装pycyrpto软件包时遇到问题

pip install pycrypto

我明白了:

 clang: warning: argument unused during compilation: '-L/usr/local/lib' [-Wunused-command-line-
argument]
    gcc -bundle -undefined dynamic_lookup -L/Users/ahubelkis/anaconda3/envs/petekSoftEnv/lib -I/us
r/local/include -L/usr/local/lib -arch x86_64 build/temp.macosx-10.5-x86_64-3.5/src/_fastmath.o -L
/Users/ahubelkis/anaconda3/envs/petekSoftEnv/lib -lgmp -o build/lib.macosx-10.5-x86_64-3.5/Crypto/
PublicKey/_fastmath.cpython-35m-darwin.so
    ld: library not found for -lgcc_s.10.5
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/Users/ahubelkis/anaconda3/envs/petekSoftEnv/bin/python -u -c "import setuptools, tokeniz
e;__file__='/private/var/folders/2x/nv199yjj1vv030_mlg3083hr0000gn/T/pip-install-xsn_u4hk/pycrypto
/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close
();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/2x/nv199yjj1vv030_
mlg3083hr0000gn/T/pip-record-349z42a5/install-record.txt --single-version-externally-managed --com
pile" failed with error code 1 in /private/var/folders/2x/nv199yjj1vv030_mlg3083hr0000gn/T/pip-ins
tall-xsn_u4hk/pycrypto/

我已经尝试过:

ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install pycrypto

和:

brew install gmp

和:

  sudo ln -s  /opt/local/lib/libgmp.dylib  /usr/lib/libgmp.dylib  

Mac OS Mojove python 3.5 环境康达 pycyrpto 2.6.1

但是非常奇怪的pycrpto安装了我的conda目录?

username:~ username$ pip install pycrypto
Requirement already satisfied: pycrypto in ./anaconda3/lib/python3.7/site-packages (2.6.1)

0 个答案:

没有答案