使用本機Python 2.7.6的Linux Mint 17.1。將Orange安裝到virtualenv
在INSTALL.TXT列出的所有預請求數:上python-numpy的libqt4的OpenGL-dev的libqt4-dev的cmake的QT4,qmake的蟒蛇-SIP-dev的蟒蛇,蟒蛇QT4 - QT4-dev的蟒蛇 - qwt5-QT4 python- sip graphviz python-networkx python-imaging python-qt4 -gl build -c python -pip python-scipy python-pyparsing ipython python-matplotlib
有沒有人將orange安裝到virtualenv中?我試圖橙色安裝到使用PIP一個的virtualenv如下:
$ cd ~/venv/
$ mkdir orange
$ cd orange
$ virtualenv venv
$ source venv/bin/activate
$ pip install --global-option="build_pyqt_ext" orange
的安裝開始不夠好:
Collecting orange
Using cached Orange-2.7.8.tar.gz
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./venv/lib/python2.7/site-packages (from orange)
Collecting numpy (from orange)
Using cached numpy-1.9.1.tar.gz
Running from numpy source directory.
Collecting scipy (from orange)
Using cached scipy-0.15.0.tar.gz
在這一點上是沿着暫停(編輯),並最終一長串錯誤,我已經張貼在這裏:http://pastebin.com/VZWyGjfz和我已經包括下面的最後幾行:
Complete output from command /home/citmkd/venv/orange/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-dLY2eU/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" build_pyqt_ext install --record /tmp/pip-r8dA2D-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/citmkd/venv/orange/venv/include/site/python2.7:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-dLY2eU/scipy/setup.py", line 249, in <module>
setup_package()
File "/tmp/pip-build-dLY2eU/scipy/setup.py", line 237, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
----------------------------------------
Command "/home/citmkd/venv/orange/venv/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-dLY2eU/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" build_pyqt_ext install --record /tmp/pip-r8dA2D-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/citmkd/venv/orange/venv/include/site/python2.7" failed with error code 1 in /tmp/pip-build-dLY2eU/scipy