(.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
Kolay kullanım veya pipet yüklemek için pipet kullanıyorum ama hepsi başarısız oldu. Python ile Mac'te ctypes nasıl kurulur 2.7
Yani 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/source/libffi/configure: Permission denied
Failed
Yine başarısız yüklemeye indirin.
(.env) ➜ ctypes-1.0.2 cd source/libffi
(.env) ➜ libffi ll
total 680
[email protected] 1 wyx staff 1080 May 15 2007 LICENSE
[email protected] 1 wyx staff 15851 May 15 2007 README
[email protected] 1 wyx staff 3365 May 15 2007 aclocal.m4
[email protected] 1 wyx staff 44911 May 15 2007 config.guess
[email protected] 1 wyx staff 33113 May 15 2007 config.sub
[email protected] 1 wyx staff 208082 May 15 2007 configure
[email protected] 1 wyx staff 8716 May 15 2007 configure.ac
[email protected] 1 wyx staff 4310 May 15 2007 fficonfig.h.in
[email protected] 1 wyx staff 2125 May 15 2007 fficonfig.py.in
[email protected] 4 wyx staff 136 Apr 7 00:30 include
[email protected] 1 wyx staff 7416 May 15 2007 install-sh
[email protected] 19 wyx staff 646 Apr 7 00:30 src
Sonra garip bir istemiyle yine başarısız .Ama 777 yılında yapılandırmak iznini değiştirmek deneyin. Bana bunu çözmek için yardımcı olabilir veya başka herhangi bir Python lib yerine daha kolay monte edilebilir ctypes orada olabilir mi
(.env) ➜ ctypes-1.0.2 python setup.py build
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/source/libffi/configure: No such file or directory
Failed
(.env) ➜ ctypes-1.0.2 cd source/libffi
(.env) ➜ libffi ll
total 680
[email protected] 1 wyx staff 1080 May 15 2007 LICENSE
[email protected] 1 wyx staff 15851 May 15 2007 README
[email protected] 1 wyx staff 3365 May 15 2007 aclocal.m4
[email protected] 1 wyx staff 44911 May 15 2007 config.guess
[email protected] 1 wyx staff 33113 May 15 2007 config.sub
[email protected] 1 wyx staff 208082 May 15 2007 configure
[email protected] 1 wyx staff 8716 May 15 2007 configure.ac
[email protected] 1 wyx staff 4310 May 15 2007 fficonfig.h.in
[email protected] 1 wyx staff 2125 May 15 2007 fficonfig.py.in
[email protected] 4 wyx staff 136 Apr 7 00:30 include
[email protected] 1 wyx staff 7416 May 15 2007 install-sh
[email protected] 19 wyx staff 646 Apr 7 00:30 src
?
ctypes standart bir modüldür, yüklemeniz gerekmemelidir. Ama ben Mac kullanmıyorum, Linux kullanıyorum. –
Mac'te de aynı. –