python3.5 pip安装_用python3.5 pip安装Numpy

在尝试使用pip安装Numpy时遇到连接超时和找不到匹配版本的问题,同时easy_install也失败。手动安装过程中,因缺少Cython导致编译失败。寻求解决方案。
摘要由CSDN通过智能技术生成

我有很多问题要安装numpy软件包。当我执行pip命令时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')

当我使用手动软件包添加

^{pr2}$

我得到以下错误: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 "", line 1, in

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

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

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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值