小编Bri*_*ric的帖子

在 Mac 10.9.5 上安装 PyCrypto 时出错

我正在尝试为 Python 3.4 安装 PyCrypto,但我遇到了 C 编译程序的问题。它说“错误:无法运行 C 编译的程序”。任何人都知道如何解决它?

代码:

running build
running build_py
running build_ext
running build_configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/Users/briansabbath/Desktop/pycrypto-2.6.1':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
Traceback (most recent call last):
  File "setup.py", …
Run Code Online (Sandbox Code Playgroud)

macos pycrypto python-3.4 osx-yosemite

2
推荐指数
1
解决办法
1671
查看次数

标签 统计

macos ×1

osx-yosemite ×1

pycrypto ×1

python-3.4 ×1