2014-08-31 33 views
0

我知道已经有以前类似这样的问题 - 我读他们所有,并试图他们建议什么运64台计算机上安装SciPy的和numpy的(Python 2.7版)

嗨, 我想在我的win 64机器上安装scipy和numpy模块,以便我可以从我选择的IDE中调用它们。唉,我所有的努力都是静静的。 这是我试过的:

1)根据this thread我试着用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.log 

2)试图从Christoph Gohlke's page抢到64个安装像这么多的地方suggest,包括scipy.org本身,而是我在多个地点试过多次,从多台机器,下载量始终最终以失败告终。

3)安装Anaconda。 Scipy和Numpy现在可以在IPython中使用,但总比没有好,但实际上我不习惯IPython接口,并且更喜欢pyscripter。尽管我可以在IPython中导入Scipy和Numpy,但我可以在pyscripter中甚至在cmd控制台中导入。与Canopy类似的结果,它只在Canopy IDE中可用。

4)无法从SourceForge上直接下载的二进制文件(如scipy on sourceforge),因为他们都是为赢32

所以,要到我的问题.....我能做些什么(如果有什么?)。 希望你的帮助。 谢谢!

回答

0

我建议使用WinpythonPython (x,y)。这些发行版为您的目的提供了完整的功能,预编译了所有必要的软件包(我通过pip安装它们,您需要编译C和Fortran代码),并检查包含的软件包是否相互兼容。

+0

他们是否可以在所有IDE上导入? – Optimesh 2014-08-31 18:26:48

+0

只需在IDE中将Python的路径设置为安装它的位置即可。 – sebix 2014-08-31 18:47:30

相关问题