WindowsからLinuxに切り替えることにしたので、Ubuntu Raringの最終ベータ版をインストールしました。
残念ながら、Pythonの問題があります。
私は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
このパッケージをインストールしたため、Pythonを実行しようとすると次のエラーが発生します。
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で何も見つけることができません。Ubuntuを仕事に使用するには、この問題を本当に解決する必要があります...
ご協力いただきありがとうございます。
編集:
どういうわけか私の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
パッケージをインストールすることで修正できます。