PyCharm上安装Package的实现(以pandas为例)
作者:morgan363 时间:2021-09-21 12:26:30
一、使用 PyCharm 软件安装 pandas 包
1、打开 PyCharm
2、点击右上角 “Files” →“Settings...”
3、弹出“Settings”窗口,选择“Project: Projects”→ “Project Interpreter”,点击右侧的“+” (加号)。
4、进入搜索第三方库的界面(Available Packages窗口),在搜索栏中输入想要安装的库或者模块(这里是 pandas),选择“pandas”→点击左下方的“Install Packages”。
直至安装完成,该库显示字体颜色会变成蓝色,并且在上一个界面罗列出已安装的库。
二、CMD命令行安装 pandas 模块
打开命令提示符,输入命令 pip install pandas
C:\Users\izheng> pip install pandas
Requirement already satisfied: pandas in d:\program files (x86)\anaconda3\lib\site-packages
Requirement already satisfied: python-dateutil>=2 in d:\program files (x86)\anaconda3\lib\site-packages (from pandas)
Requirement already satisfied: pytz>=2011k in d:\program files (x86)\anaconda3\lib\site-packages (from pandas)
Requirement already satisfied: numpy>=1.9.0 in d:\program files (x86)\anaconda3\lib\site-packages (from pandas)
Requirement already satisfied: six>=1.5 in d:\program files (x86)\anaconda3\lib\site-packages (from python-dateutil>=2->pandas)
You are using pip version 9.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
如上显示,我们了解到 pip 版本太旧了。于是根据提示,需要更新pip 的版本:
升级 pip:
C:\Users\izheng> python -m pip install --upgrade pip
Requirement already up-to-date: pip in e:\program files\python3.6.5\lib\site-packages (19.3.1)
从中我们了解到,pip 的最新版本已安装。
我们来检查一下 pip 的版本:
C:\Users\izheng> pip -V
pip 9.0.1 from D:\Program Files (x86)\Anaconda3\lib\site-packages (python 3.6)
C:\Users\izheng> pip3 -V
pip 19.3.1 from e:\program files\python3.6.5\lib\site-packages\pip (python 3.6)
结果发现:pip-9.0.1 是用在 Anaconda 上,python3.6 用的最新版pip3。
所以,这里我们用 pip3 命令来安装 pandas 就没有问题了。
注意:在使用 pip 命令安装Package时,先检查下 pip 的版本是否正确。到底是使用 pip 命令还是 pip3 命令。
来源:https://www.cnblogs.com/morgan363/p/12003338.html
标签:PyCharm,安装,Package
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python读取键盘输入的2种方法
2023-03-14 22:08:37
Python 使用元类type创建类对象常见应用详解
2023-09-15 23:07:57
彻底弄懂CSS盒子模式之五(定位强化练习)
2007-05-11 16:51:00
![](https://img.aspxhome.com/file/uploadpic/20075/2007511165148243.gif)
用python画圣诞树三种代码示例介绍
2023-03-24 08:15:01
![](https://img.aspxhome.com/file/2023/6/97356_0s.jpg)
深入理解python中的闭包和装饰器
2023-03-20 06:27:48
![](https://img.aspxhome.com/file/2023/6/79766_0s.jpg)
Python使用爬虫爬取静态网页图片的方法详解
2021-02-18 20:07:58
![](https://img.aspxhome.com/file/2023/6/125186_0s.png)
python数字图像处理之高级形态学处理
2021-08-18 15:55:42
![](https://img.aspxhome.com/file/2023/2/72162_0s.png)
Python collections.deque双边队列原理详解
2022-02-21 04:25:00
![](https://img.aspxhome.com/file/2023/0/90890_0s.png)
搞定web设计中网页路径问题
2007-09-22 08:52:00
操作Dom节点实现间歇滚动新闻
2009-10-16 20:51:00
Python Socketserver实现FTP文件上传下载代码实例
2022-10-10 11:03:04
![](https://img.aspxhome.com/file/2023/6/85226_0s.png)
python实现最小二乘法线性拟合
2022-04-01 03:46:49
![](https://img.aspxhome.com/file/2023/6/95266_0s.jpg)
详解Python OpenCV图像分割算法的实现
2022-11-28 13:15:44
![](https://img.aspxhome.com/file/2023/2/78712_0s.png)
python实现简单的单变量线性回归方法
2021-03-27 09:04:51
![](https://img.aspxhome.com/file/2023/0/124140_0s.jpg)
Web表单设计:表单结构
2011-04-22 12:32:00
Pyscript使用本地Pyodide配置步骤
2021-06-12 06:58:49
关于django python manage.py startapp 应用名出错异常原因解析
2023-04-04 08:57:28
![](https://img.aspxhome.com/file/2023/4/64224_0s.png)
利用Pycharm + Django搭建一个简单Python Web项目的步骤
2021-10-21 15:35:47
![](https://img.aspxhome.com/file/2023/2/88922_0s.jpg)
最大限度优化你的Asp性能
2007-10-01 18:04:00
JS中实现JAVA的hashCode算法
2008-08-03 17:00:00