使用本机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