我知道以前也有类似的问题--我都看过了,并尝试了他们的建议。
嗨,我正在我的win 64机器上安装win和numpy模块,这样我就可以从我的IDE中调用它们了。唉,我所有的努力都是徒劳的。以下是我尝试过的:
1),根据这条线,我试着用pip安装。尽管评论称赞这个解决方案是长寿的,但当我跑的时候
pip install git+http://github.com/scipy/scipy/ 我有个错误:
C:\Python27>pip install git+http://github.com/scipy/scipy/
Downloading/unpacking git+http://github.com/scipy/scipy/
Cloning http://github.com/scipy/scipy/ to c:\users\____\ap
\pip-vguqfv-build
Cleaning up...
Cannot find command 'git'
Storing debug log for failure in C:\Users\____\pip\pip.log当我试着:
pip install git+http://github.com/scipy/scipy/ 我得到了:
Downloading/unpacking scipy
Running setup.py (path:c:\users\XXXX\appdata\local\temp\pip_build_XXXX
\scipy\setup.py) egg_info for package scipy
warning: no previously-included files matching '*_subr_*.f' found under dire
ctory 'scipy\linalg\src\id_dist\src'
no previously-included directories found matching 'doc\build'
no previously-included directories found matching 'doc\source\generated'
no previously-included directories found matching '*\__pycache__'
warning: no previously-included files matching '*~' found anywhere in distri
bution
warning: no previously-included files matching '*.bak' found anywhere in dis
tribution
warning: no previously-included files matching '*.swp' found anywhere in dis
tribution
warning: no previously-included files matching '*.pyo' found anywhere in dis
tribution
Installing collected packages: scipy
Running setup.py install for scipy
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\XXXX\appdata\local\temp\pip_build_XXXX\scipy\setup.
py", line 237, in <module>
setup_package()
File "c:\users\XXXX\appdata\local\temp\pip_build_XXXX\scipy\setup.
py", line 225, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
Complete output from command C:\Python27\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\XXXX\\appdata\\local\\temp\\pip_build_XXXX\
\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().
replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\XXXX\ap
pdata\local\temp\pip-xpcgro-record\install-record.txt --single-version-externall
y-managed --compile:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\XXXX\appdata\local\temp\pip_build_XXXX\scipy\setup.py",
line 237, in <module>
setup_package()
File "c:\users\XXXX\appdata\local\temp\pip_build_XXXX\scipy\setup.py",
line 225, in setup_package
from numpy.distutils.core import setup
ImportError: No module named numpy.distutils.core
----------------------------------------
Cleaning up...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\use
rs\\XXXX\\appdata\\local\\temp\\pip_build_XXXX\\scipy\\setup.py';exec(co
mpile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __
file__, 'exec'))" install --record c:\users\XXXX\appdata\local\temp\pip-xpcg
ro-record\install-record.txt --single-version-externally-managed --compile faile
d with error code 1 in c:\users\XXXX\appdata\local\temp\pip_build_XXXX\s
cipy
Storing debug log for failure in C:\Users\XXXX\pip\pip.log2)试图从Christoph Gohlke的网页抓取64位安装程序,就像许多places 建议,包括scipy.org本身一样,但是我尝试了多次,在多个位置的多台机器上,下载最终失败了。
3)安装了蟒蛇。现在,IPython中有Scipy,这比什么都没有好,但老实说,我还不习惯IPython接口,而且更像炼焦器。即使我可以在IPython中导入Scipy和Numpy and,我也可以在炼铁器中,甚至在cmd控制台中导入。类似的结果与Canopy相似,其中它仅在Canopy中可用。
4)不能直接从sourceforge (例如对sourceforge的参与)下载二进制文件,因为它们都是win 32。
所以,来回答我的问题……我能做什么(如果有的话)。会很感激你的帮助。谢谢!
发布于 2014-08-31 17:53:49
我建议使用温比森或Python (x,y)。这些发行版为您提供了完整的功能,并预编译了所有必要的包(我通过pip安装它们,您需要编译C和Fortran代码),所包含的包都被检查是否彼此兼容。
https://stackoverflow.com/questions/25593594
复制相似问题