2016-12-07 210 views
0

我有很多安裝numpy軟件包的問題。當我執行PIP COMMANDE用python3.5 pip安裝numpy

pip install numpy 

我收到以下錯誤

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.python.org timed out. (connect timeout=15)')': /simple/numpy/Could not find a version that satisfies the requirement numpy (from versions:) No matching distribution found for numpy

當我使用easy_insall命令,我收到以下錯誤

Searching for numpy timed out -- Some packages may not be found! Couldn't find index page for 'numpy' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading https://pypi.python.org/simple/ Download error on https://pypi.python.org/simple/ : timed out -- Some packages may not be found! No local packages or download links found for numpy error: Could not find suitable distribution for Requirement.parse('numpy')

當我採用手工包添加

python setup.py install 

我收到以下錯誤:

Running from numpy source directory. 
Cythonizing sources 
numpy/random\mtrand\randint_helpers.pxi.in has not changed 
Processing numpy/random\mtrand\mtrand.pyx 
Traceback (most recent call last): 
    File "<string>", line 1, in <module> 
ImportError: No module named 'Cython' 
Traceback (most recent call last): 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 70, in process_pyx 
    r = subprocess.call(['cython'] + flags + ["-o", tofile, fromfile]) 
    File "C:\Users\Hazem\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 560, in call 
    with Popen(*popenargs, **kwargs) as p: 
    File "C:\Users\Hazem\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 950, in __init__ 
    restore_signals, start_new_session) 
    File "C:\Users\Hazem\AppData\Local\Programs\Python\Python35\lib\subprocess.py", line 1220, in _execute_child 
    startupinfo) 
FileNotFoundError: [WinError 2] The system cannot find the file specified 

During handling of the above exception, another exception occurred: 

Traceback (most recent call last): 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 220, in <module> 
    main() 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 216, in main 
    find_process_files(root_dir) 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 208, in find_process_files 
    process(cur_dir, fromfile, tofile, function, hash_db) 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 167, in process 
    processor_function(fromfile, tofile) 
    File "C:\Hazem\Python packages\numpy\tools\cythonize.py", line 81, in process_pyx 
    raise Exception('Cython failed') 
Exception: Cython failed 
Traceback (most recent call last): 
    File "setup.py", line 391, in <module> 
    setup_package() 
    File "setup.py", line 374, in setup_package 
    generate_cython() 
    File "setup.py", line 212, in generate_cython 
    raise RuntimeError("Running cythonize failed!") 
RuntimeError: Running cythonize failed! 

需要幫助。

回答

0

你可以隨時下載Numpy安裝

+0

我做了,我按照我說的手動執行了命令。但它不起作用 – user3047441

0

與PIP錯誤顯示你有一個點連接問題。我想你在嘗試運行pip install時沒有正確設置代理。請檢查this question。您可以嘗試 - pip的代理選項。否則,我不建議任何手動安裝numpy。