我有很多探针来安装numpy软件包。当我执行pip commande
pip install numpy
我收到以下错误
连接被'ConnectTimeoutError(,'与pypi.python.org的连接超时。(connect timeout = 15)')断开连接后重试(Retry(total = 4,connect = None,read = None,redirect = None)): / simple / numpy /找不到满足numpy要求的版本(来自版本:)找不到numpy的匹配发行版
当我使用easy_insall
命令时,出现以下错误
搜索numpy超时-可能找不到某些软件包!找不到'numpy'的索引页(可能拼写错误?)扫描所有软件包的索引(这可能需要一段时间)读取https://pypi.python.org/simple/在https://pypi.python上下载错误.org / simple /:超时-可能找不到某些软件包!未找到有关numpy错误的本地软件包或下载链接:找不到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!
请帮忙。
您可以随时下载Numpy安装程序
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句