Is it possible to install SciPy with p7 python distribution?
我在将scipy安装到预构建的python发行版时遇到问题。python发行版附带了一个名为p7的程序(通过dataadvance)。python版本为2.7.7,当前numpy版本为1.7.1。
下载时已经安装了一个numpy,但我也需要scipy来完成我想要的程序。
我尝试使用运行的setup.py脚本安装:
1 | p7 --run setup.py build |
这实际上与:
1 | python setup.py build |
号
我尝试安装Scipy版本0.11.0、0.12.0和0.13.0,但始终出现相同的错误:
1 2 3 4 5 6 7 8 9 | non-existing path in 'scipy/sparse/csgraph': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/sparse/csgraph': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/sparse/csgraph': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/sparse/csgraph': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/spatial': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/spatial': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/special': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' non-existing path in 'scipy/special': '/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/include' !!! [Interpreter] PkgNotFound: Could not find file(s) ['/home/Ben/DATADVANCE/pSeven-3.1/python/lib/python2.7/site-packages/numpy/core/lib/npy-pkg-config/npymath.ini'] |
我已经检查了目录和文件夹"/home/ben/datadvance/pseven-3.1/python/lib/python2.7/site packages/numpy/core/lib/npy pkg config/"根本不存在。
我还尝试使用setup.py脚本安装numpy的1.8.0和1.8.1版本,但收到以下错误消息:
1 2 3 4 | non-existing path in 'numpy/distutils': 'site.cfg' /bin/sh: svnversion: command not found F2PY Version 2 !!! [Interpreter] AttributeError: 'Configuration' object has no attribute 'add_define_macros' |
。
除此之外,我还尝试了numpy 1.7.2,它会进一步发展,但会停止,因为它显然需要开发版本python.h中的python.h。
我试着告诉那些维护这个项目的人,但他们还没有回复我。
我能做些什么让scipy安装吗?
事先谢谢,本
据我所知,现代版的pseven含有相当新的版本(0.14.0)的scipy。这是证明:
。