(.env) ➜ ~ easy_install ctypes
Searching for ctypes
Reading https://pypi.python.org/simple/ctypes/
No local packages or download links found for ctypes
error: Could not find suitable distribution for Requirement.parse('ctypes')
(.env) ➜ ~ pip install ctypes
Collecting ctypes
Could not find a version that satisfies the requirement ctypes (from versions: )
No matching distribution found for ctypes
我使用easy_install或pip安装ctypes,但它们都失败了。
所以我下载ctypes-1.0.2-AMD64.zip来安装(.env) ➜ ctypes-1.0.2 sudo python setup.py build
Password:
running build
running build_py
running build_ext
Configuring static FFI library:
cd build/temp.macosx-10.11-intel-2.7/libffi && env CFLAGS='' '/Users/wyx/Downloads/ctypes-1.0.2/source/libffi/configure'
env: /Users/wyx/Downloads/ctypes-1.0.2/sou