2014-08-31 31 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

相關問題