python 安装numpy报错

在python安装numpy的时候,一般会出现错误,说缺少vc++9.0,还有一个**.bat文件,这个时候的解决方法很多,我提供最简单,最有效的解决方法
在这个网站http://www.lfd.uci.edu/~gohlke/pythonlibs/下载相应的numpy版本,其中cp对应 的是python版本,我选的是cp27版本的,另外虽然我的是64位
windows7,但是由于安装的python是32的,所以对应的numpy,我也选择的是32位的,并且安装后,很成功。
选择下载了相应的numpy.whl之后,任意放在某处,然后通过命令管理器,就是cmd,进入到numpy所在的文件夹,然后安装numpy就可以了。
如果你之前安装好了pip的话,直接进入到numpy所在的文件夹,用命令pip  "文件名",这里文件名是你下载的numpy的文件名,以.whl结尾的。然后即可安装好numpy。

备注:pip是非常好用的第三方库,装好pip之后,装其他的都非常方便,建议python使用者,先装好pip库。

时间: 2025-02-01 23:45:33

python 安装numpy报错的相关文章

python安装locustio报错error: invalid command 'bdist_wheel'的解决方法

locust--scalable user load testing tool writen in Python(是用python写的.规模化.可扩展的测试性能的工具) 安装locustio需要的环境条件是:Python2.6+,但是不支持Python3. 今天在cmd里运行pip install locustio,报错提示:error: invalid command 'bdist_wheel'. 原因:pip和setuptools的版本较低. 解决方案:升级pip和setuptools. 一

python2.7安装numpy报错:is not a supported wheel on...

python2.7安装numpy时报错信息如下: C:\Python27\Scripts>pip install "numpy-1.9.2+mkl-cp26-none-win_amd64.whl" numpy-1.9.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platfor m. 错误原因: 事实上是因为,我的python为2.7版本,下载的numpy为2.6版本,所以错误. 解决方案: 参见:f

python 安装 SQLAlchemy 报错

安装 SQLAlchemy 报错 安装命令 pip install -i https://pypi.doubanio.com/simple SQLAlchemy 报错截图 编码错误,这里我们需要改下源码 解决方案 重新安装,安装成功 参数文章:https://www.cnblogs.com/lliuye/p/7640645.html 原文地址:https://www.cnblogs.com/zhuchunyu/p/11960658.html

在MacOS下Python安装lxml报错xmlversion.h not found 报错的解决方案

最近在看一个自动化测试框架的问题,需要用到Lxml库,下载lxml总是报错. 1,使用pip安装lxml pip install lxml 2,然后报错了,报错内容是: In file included from src/lxml/lxml.etree.c:139:src/lxml/etree_defs.h:9:10: fatal error: 'libxml/xmlversion.h' file not found#include "libxml/xmlversion.h" ^1 e

python 安装opendr 报错OSMesa

### 报错/ERROR: ```opendr/contexts/OSMesa/include/GL/glext.h:5794:21: note: expected ‘const GLchar ** {aka const char **}’ but argument is of type ‘char **’ GLAPI void APIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const

python 安装readline报错

由于python的命令补全需要使用到readline模块,在安装readline模式时,提示如下错误: /usr/bin/ld: cannot find -lncurses collect2: ld returned 1 exit status error: command 'gcc' failed with exit status 1 解决方法: yum install -y ncurses-devel

Python 安装Scrapy报错(已解决)

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools 进入该网址http://www.lfd.uci.edu/~gohlke/pythonlibs/#twisted 下载twisted对应版本的whl文件   Twisted-17.1.0-

python 安装 pyautogui 报错

pip install --user --upgrade setuptools python -m pip install --user --upgrade pip pip install --user pyautogui 原文地址:https://www.cnblogs.com/java-xz/p/11203371.html

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED

Python virtualenv安装库报错SSL: CERTIFICATE_VERIFY_FAILED 问题描写叙述 使用pip依照virtualenv报错,例如以下: pip install virtualenv Collecting virtualenv /opt/python27/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:315: SNIMissingWarning: An