win7系统下python安装numpy,matplotlib,scipy和scikit-learn
1、安装numpy,matplotlib,scipy和scikit-learn
win7系统下直接采用pip或者下载源文件进行安装numpy,matplotlib,scipy时会遇到各种问题,这是因为这些库需要C编译环境,所以无法完成安装会出错。
采用以下方法安装完成:
(1)在http://www.lfd.uci.edu/~gohlke/pythonlibs/上找到numpy对应版本的whl文件下载,比如32位和64位系统,python的版本2.7还是3.x。然后
pip install download_dir/name.whl进行安装,比如下载路径在D:\python,那么执行命令如下所示。
pip install D:\python\numpy-1.11.2+mkl-cp27-cp27m-win_amd64.whl
(2)按照以上方法依次完成matplotlib,scipy和scikit-learn。安装完成以后会在py_installdir\Lib\site-packages找到对应的库文件夹。其中py_installdir是python的安装路径。
2、总结了一下python安装第三方库的方法主要有:
(1)可以到官网https://pypi.python.org/pypi下载源文件安装,一般是zip格式,下载后解压到py_installdir/Lib目录下,打开cmd,转到解压目录下,执行python setup.py install即完成安装。
cd py_installdir/Lib/解压目录
python setup.py install
(2)按照以上方法在官网https://pypi.python.org/pypi上搜索安装setuptools以后,可以使用easy_install来安装第三方库。在这里需要将路径py_installdir/Scripts加入到系统环境变量中。比如安装beautifulsoup4。
easy_install beautifulsoup4
安装完成后可以在py_installdir\Lib\site-packages找到对应的库文件夹。
(3)采用上面方法安装pip,可以使用pip来安装第三方库和whl文件。
easy_install pip
pip install beautifulsoup4
有些第三方库因为需要特殊的编译环境,在window系统上编译比较麻烦,可以到http://www.lfd.uci.edu/~gohlke/pythonlibs/下载对应版本的whl文件,然后采用pip命令进行安装。
pip install download_dir/name.whl
说明:whl文件其实也是一种压缩格式,里面包括了py文件和编译后的pyd文件。
3、Python 包管理工具解惑
http://zengrong.net/post/2169.htm
win7系统下python安装numpy,matplotlib,scipy和scikit-learn的更多相关文章
- windows下python安装Numpy、Scipy、matplotlib模块(转载)
python下载链接 Numpy下载链接 python中Numpy包的安装及使用 Numpy包的安装 准备工作 Python安装 pip安装 将pip所在的文件夹添加到环境变量path路径中 ...
- windows下python安装Numpy、Scipy、matplotlib模块
来源http://blog.csdn.net/Katrina_ALi/article/details/64922107 http://blog.csdn.net/qq_16633405/article ...
- windows下python安装Numpy和Scipy模块
安装 numpy: 去 http://sourceforge.net/projects/numpy/files/latest/download?source=files 下载相应的exe安装文件. 安 ...
- Windows系统在Python2.7环境下安装numpy, matplotlib, scipy - Lichanghao Blog
numpy, matplotlib, scipy三个包是科学计算和绘图的利器.安装它们既可以在网上下载exe安装包,也可以用python内置的包管理工具来下载安装,后者较为方便. 这几天做美赛要用到, ...
- Windows下Python安装numpy+mkl,Scipy和statsmodels
最近做时间序列分析需要用到Python中的statsmodels,但是安装过程中遇到很头疼的问题,Google.Stackover各种都没有找到合适的解决办法,而且貌似还有很多同学也在吐槽Window ...
- 【软件安装】python安装numpy、scipy
python2.7开发环境,若为python3.4的环境则下载对应的软件 系统为64为windows环境,显然不同于32的环境,更繁琐,所谓的网友教程也不尽人意. 安装numpy 下载地址:http: ...
- Windows64 系统下Python、NumPy与matplotlib 安装方法
今下午想用Python跑RNN网络,结果代码在导入包numpy时并没有报错,但是在用里面的函数时报错,因小编也是新手,只学习了Python的基础语法,并没有使用过第三方包,安装了一下午还没弄好,本以为 ...
- python安装numpy、scipy和matplotlib等whl包的方法
最近装了python和PyCharm开发环境,但是在安装numpy和matplotlib等包时出现了问题,现总结一下在windows平台下的安装方法. 由于现在找不到了工具包新版本的exe文件,所以采 ...
- Centos7下安装numpy+matplotlib+scipy
摘自:http://litchiware.github.io/centos/2015/07/05/centos7%E4%B8%8B%E5%AE%89%E8%A3%85numpy+matplotlib+ ...
随机推荐
- ngx_http_upstream_module模块.md
ngx_http_upstream_module ngx_http_upstream_module模块用于定义可由proxy_pass,fastcgi_pass,uwsgi_pass,scgi_pas ...
- [LeetCode] Largest Divisible Subset 最大可整除的子集合
Given a set of distinct positive integers, find the largest subset such that every pair (Si, Sj) of ...
- [LeetCode] Verify Preorder Sequence in Binary Search Tree 验证二叉搜索树的先序序列
Given an array of numbers, verify whether it is the correct preorder traversal sequence of a binary ...
- html5 自定义标签取值
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- Backbone.js应用基础
前言: Backbone.js是一款JavaScript MVC应用框架,强制依赖于一个实用型js库underscore.js,非强制依赖于jquery:其主要组件有模型,视图,集合,路由:与后台的交 ...
- 动态生成验证码———MVC版
上面有篇博客也是写的验证码,但那个是适用于asp.net网站的. 今天想在MVC中实现验证码功能,弄了好久,最后还是看博友文章解决的,感谢那位博友. 首先引入生成验证码帮助类. ValidateCod ...
- 安装cocoapods
1. 看一下ruby的版本 ruby -v 2. 删除默认源 gem sources --remove https://rubygems.org/ 3. 添加淘宝源 gem sources -a ht ...
- Office 365 如何使用powershell查询邮件追踪
如何使用Powershell 对office365的邮件进行查询追踪 1. 首先链接到Exchange Online 管理上面 $UserCredential = Get-Credential $Se ...
- WCF、Web API、WCF REST、Web Service比较
原文地址:http://www.dotnet-tricks.com/Tutorial/webapi/JI2X050413-Difference-between-WCF-and-Web-API-and- ...
- iOS事件传递->处理->响应
前言: 按照时间顺序,事件的生命周期是这样的: 事件的产生和传递(事件如何从父控件传递到子控件并寻找到最合适的view.寻找最合适的view的底层实现.拦截事件的处理)->找到最合适的view后 ...