Chciałem zainstalować Cython na moim Ubuntu 12.04 i wszedłem w terminaluInstalacja w języku Cython nie znajduje pliku Python.h?
sudo easy_install cython
w odpowiedzi, pojawia się następujący błąd:
Searching for cython
Reading http://pypi.python.org/simple/cython/
Reading http://www.cython.org
Reading http://cython.org
Best match: Cython 0.16
Downloading http://www.cython.org/release/Cython-0.16.zip
Processing Cython-0.16.zip
Running Cython-0.16/setup.py -q bdist_egg --dist-dir /tmp/easy_install-VzJ0lH/Cython-0.16/egg-dist-tmp-BMJs3p
Compiling module Cython.Plex.Scanners ...
Compiling module Cython.Plex.Actions ...
Compiling module Cython.Compiler.Lexicon ...
Compiling module Cython.Compiler.Scanning ...
Compiling module Cython.Compiler.Parsing ...
Compiling module Cython.Compiler.Visitor ...
Compiling module Cython.Compiler.FlowControl ...
Compiling module Cython.Compiler.Code ...
Compiling module Cython.Runtime.refnanny ...
warning: no files found matching '*.pyx' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.h' under directory 'Cython/Debugger/Tests'
warning: no files found matching '*.pxd' under directory 'Cython/Utility'
warning: no files found matching '*.h' under directory 'Cython/Utility'
warning: no files found matching '.cpp' under directory 'Cython/Utility'
/tmp/easy_install-VzJ0lH/Cython-0.16/Cython/Plex/Scanners.c:4:20: fatal error: Python.h: El fitxer o directori no existeix
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
przepraszam za katalońskiego tu jednak El fitxer o directori nie existeix oznacza, że plik nie istnieje
myślę, że być może coś przeoczyć lub nie wiem
czy ktoś inny ma ten sam problem? lub wiesz, jak zainstalować go poprawnie?
Z Ubuntu 12.10 (celowanie w python2.7.5) W końcu mogłem (!) Złapać to błądzenie, aby odejść przez określenie "sudo apt-get install python2.7-dev" Próbowałem właśnie python-dev. – fooledbyprimes
@fooledbyprimes - Cieszę się, że masz go do pracy ... FWIW, ja nawet nie pamiętam, pisząc tę odpowiedź :-). Gdybyś zapytał mnie, jak to zrobić dzisiaj, prawdopodobnie byłbym zaskoczony ;-). – mgilson