[英]Numpy installing with python3.5 pip
I got many probelms to install numpy package. 我有很多探针来安装numpy软件包。 When i execute pip commande
当我执行pip commande
pip install numpy
I get the following errors 我收到以下错误
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
连接被'ConnectTimeoutError(,'与pypi.python.org的连接超时。(connect timeout = 15)')断开连接后重试(Retry(total = 4,connect = None,read = None,redirect = None)): / simple / numpy /找不到满足numpy要求的版本(来自版本:)找不到numpy的匹配发行版
When i use easy_insall
command, i get the following errors 当我使用
easy_insall
命令时,出现以下错误
Searching for numpy timed out -- Some packages may not be found!
搜索numpy超时-可能找不到某些软件包! 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!
找不到'numpy'的索引页(可能拼写错误?)扫描所有软件包的索引(这可能需要一段时间)读取https://pypi.python.org/simple/在https://pypi.python上下载错误.org / simple / :超时-可能找不到某些软件包! No local packages or download links found for numpy error: Could not find suitable distribution for Requirement.parse('numpy')
未找到有关numpy错误的本地软件包或下载链接:找不到Requirement.parse('numpy')的合适发行版
And when i employ manual packages adding 当我采用手动包装时
python setup.py install
I get the following errors: 我收到以下错误:
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!
Need help please. 请需要帮助。
您可以随时下载Numpy安装程序
The error with pip shows you have a pip connection problem. pip错误显示您有pip连接问题。 I think you did not set your proxy correctly when trying to run pip install.
我认为您尝试运行pip安装时未正确设置代理。 Please check this question .
请检查此问题 。 You may try --proxy option for pip.
您可以尝试pip的--proxy选项。 Otherwise, I don't suggest any manual install for numpy.
否则,我不建议对numpy进行任何手动安装。
Maybe the reason is network ,you can try once again. 也许原因是网络,您可以再试一次。 (it worked for me)
(对我有用)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.