安装指定版本的Pandas,卸载pandas

 安装Pandas

pip install pandas;

#查看版本号
pandas.__version__

 

 安装指定版本的Pandas模块

pip install pandas==1.4.3;

  

卸载pandas

pip uninstall pandas;

 

 

 

 

 


原文链接:https://aistudio.baidu.com/aistudio/projectdetail/4411791

 

在终端命令行中有三种安装方法,输入命令:

(1)pip install pandas。自动安装默认版本的pandas,当我们不关注pandas具体的版本时可以使用。

(2)pip install pandas==1.1.5。安装指定版本的pandas,当我们关注pandas具体的版本时可以使用。

(3)pip install pandas==1.1.5 -i https://pypi.tuna.tsinghua.edu.cn/simple 。使用国内其他的镜像源进行安装,当连接国外网站速度较慢时可以使用。

 


 

原文链接:https://www.zhihu.com/question/47003185?sort=created

 

2、使用wheel文件安装Pandas库

这种方法适合离线安装,wheel文件是库的源文件,可以下载后放到本地安装。

步骤如下:

(1) 在下面网站里找相应库的.whl文件

https://www.lfd.uci.edu/~gohlke/pythonlibs/

(2) 下载 .whl 文件,注意对应的版本

 

(3) 在 .whl 所在文件夹内,按Shift键+鼠标右键,打开cmd窗口或者PowerShell

(4) 输入命令即可完成安装。

pip install matplotlib-3.4.1-cp39-cp39-win_adm64.whl

  

 

posted @ 2023-05-15 14:55  limalove  阅读(5388)  评论(0)    收藏  举报