Windows 下Python 安装pandas numpy的方法--pip命令
2019-01-13 16:55
411 查看
参考:https://www.geek-share.com/detail/2689232720.html
我之前安装过numpy的包,今天想安装pandas与matplotlib的时候就安装不上了,老是报错,我贴上我报错的图:
在网上看了些办法,比如将numpy卸载掉再重新安装numpy pandas等等,原因说的是可能以前的版本不适用了。
然后我使用
pip3 uninstall numpy将其卸载掉,然后重新使用代码
pip3 install numpy,发现还是不行。(我用pip3的原因是因为我电脑里python2 python3都有,若不加3则默认是2的版本)
↑ 以上为我自己动手尝试过程的描述~
↓ 以下则是我安装成功的步骤啦~
小提示:我使用了外网
先将pip更新到最新版本,我目前是18.1。
为了提升安装速度,我选择使用豆瓣的源
pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pip install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pip install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com pip install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
安装速度非常快,而且一次性安装成功~(事实上第一个命令就会安装numpy,matplotlib以及cycler,pyparsing,kiwisolver<我暂时使用不到这三个>,然后我再使用了第三条命令安装了pandas)
贴上我检查是否安装成功的截图:
大功告成啦~还有疑问可以看看第一行贴出的参考链接。
相关文章推荐
- 【NumPy】Windows下Python通过pip安装numPy的方法
- windows下python numpy,scipy,pandas 等模块的安装
- 【python学习】Windows上Python3.6 通过pip安装第三方库时出现UnicodeDecodeError的解决方法
- Windows平台下Python2.7中pip的安装方法
- Windows安装Python、pip、easy_install的方法
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- Windows 安装python、pip、numpy、scipy
- windows:cmd运行Python,安装pip,修改了某些博客里面的错误命令
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- 在 Windows 中通过 pip 安装 Numpy,Scipy,Matplotlib,Pandas,StatsModels,Scikit-Learn,PyWavelets,Graphviz,TSNE
- Windows下 python快速安装numpy、matplotlib、scikit-learn等库方法总结
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- windows 安装python3.6(numpy,scipy,pandas,matplotlib,scikit-learn)
- windows7下python3.6中用pip安装numpy
- python机器学习包 Windows下 pip安装 scikit-learn numpy scipy
- win10 64位下Python中NLTK,pip,numpy等安装方法
- Windows系统中安装Python模块pip numpy matplotlib
- Windows下Python、Pydev、easy_install、pip、Numpy、Scipy安装