Windows에서 Linux로 전환하기로 결정했기 때문에 Ubuntu Raring 최종 베타 버전을 설치했습니다.
불행히도 파이썬 문제가 있습니다.
다음 과 같은 파일 pip
에서 패키지를 설치하기 위해 내가 만든 virtualenv에서 사용하려고 requirements.txt
했습니다.pip install -r requirements.txt
패키지를 설치하는 동안 다음 오류가 발생했습니다.
buildutils/initlibzmq.c:10:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
인터넷에서 이것을 제거하려면 python-dev
deb 패키지를 설치해야한다는 것을 알았습니다 .
sudo apt-get install python-dev
이 패키지를 설치 했으므로 파이썬을 실행하려고 할 때 다음 오류가 발생합니다.
file: "ImportError: No module named _io".
I use this python from the virtualenv:
Python 2.7.4rc1 (default, Mar 30 2013, 15:39:28)
[GCC 4.7.2] on linux2
누구든지 아이디어가 있습니까? Google에서 아무것도 찾을 수 없으며 작업에 우분투를 사용하려면이 문제를 해결해야합니다 ...
당신의 도움을 주셔서 감사합니다.
편집하다:
내 virtualenv가 어떤 이유로 손상 된 것 같습니다. 나는 그것을 제거했다.
하나를 다시 작성하고 "pip install -r requirements.txt"를 다시 수행했는데이 오류가 발생했습니다.
Warning: failed to configure libzmq:
/bin/sh: 1: ./configure: not found
staging platform.hpp from: buildutils/include_linux
************************************************
Using bundled libzmq
************************************************
building 'zmq.libzmq' extension
creating build/temp.linux-x86_64-2.7/buildutils
creating build/temp.linux-x86_64-2.7/bundled
creating build/temp.linux-x86_64-2.7/bundled/zeromq
creating build/temp.linux-x86_64-2.7/bundled/zeromq/src
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibundled/zeromq/include -Ibundled -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -c buildutils/initlibzmq.c -o build/temp.linux-x86_64-2.7/buildutils/initlibzmq.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -Ibundled/zeromq/include -Ibundled -I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -c bundled/zeromq/src/ipc_address.cpp -o build/temp.linux-x86_64-2.7/bundled/zeromq/src/ipc_address.o
x86_64-linux-gnu-gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
EDIT2 :
패키지 gcc
를 설치하면 위 의 오류를 해결할 수 있습니다 build-essential
.