在python中安装Numpy、MatPlotLib、SciPy
来源:互联网 发布:企业it解决方案 编辑:程序博客网 时间:2024/05/18 02:58
打开cmd命令提示符 (计算机初学者注意:cmd命令提示符就是)
点击cmd启动图标 ->选择以管理员身份运行
如下图:
本篇文章介绍的方法,不需要知道自己安装的python版本,这样大大方便了初学者去艰难的寻找与python版本匹配的Numpy、SciPy、MatPlotLib
安装顺序:
1.先安装 Numpy
在电脑已经连接到网络的情况下,直接在命令窗口中输入: pip install numpy ((注意是全小写))
等待一段时间后,显示安装成功后,可以继续安装matplotlib, 如果在安装过程中出现错误,cmd命令窗口会显示错误的原因并以红色显示。
解决该问题的方法:
确保python安装好和有网的前提下,以管理员身份重新打开cmd命令,在命令窗口中输入: pip install numpy
2.再安装MatPlotLib
方法与1雷同,直接在命令窗口中输入: pip install matplotlib (注意是全小写)
测试MatPlotLib
新建一个文件 **.py
import matplotlib.pyplot as plt
a = [1,5,20,25]
plt.plot(a)
plt.show()
显示图:
3.接续安装SciPy
方案与1雷同,直接在命令窗口中输入: pip install csipy (注意是全小写)
如果出现:'utf-8'问题,修改即可。具体方案,可以在百度搜索,有很多帖子。
阅读全文
0 0
- 在python中安装Numpy、MatPlotLib、SciPy
- python:安装numpy, Scipy,Matplotlib
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- Python中Numpy、SciPy、MatPlotLib安装与配置
- Windows中python机器学习numpy,scipy,matplotlib的安装
- ubuntu 下 python numpy,scipy,matplotlib安装
- python scipy numpy matplotlib傻瓜式安装
- 安装配置Python+Numpy+Scipy+Matplotlib环境
- Python: Ubuntu 安装numpy,scipy,matplotlib
- python下安装numpy、matplotlib、scipy过程
- Python安装Numpy,SciPy和MatplotLib
- python 安装numpy,scipy,matplotlib算法库
- Python 之 安装 scipy,numpy,matplotlib,pandas
- windows下python,numpy,scipy,matplotlib安装
- Python中的Numpy、SciPy、MatPlotLib安装教程
- Python:Ubuntu安装numpy,scipy,matplotlib
- python如何安装Numpy、SciPy、MatPlotLib
- maven appweb 没有src/main/java
- 请求路径的参数出现的问题
- string和char*
- Python3.6 psutil官方开发文档
- Android 打包、资源合并问题 "Manifest merger failed with multiple errors" and "Could not expand ZIP"
- 在python中安装Numpy、MatPlotLib、SciPy
- oj2335——0-1背包问题
- 算法提高 数字黑洞
- 使用DPM训练自己的模型
- Js高级函数式编程
- oracle时间函数(二),trunc()
- 最佳乘法问题
- android实现倒计时,最简单实现RecyclerView倒计时+SwipeRefreshLayout下拉刷新
- Spring异常默认映射HTTP状态码