安装python的numpy、matplotlib、pandas、jieba等模块

python常用库安装方法

1.使用国外的服务器安装

pip install 库名

例如安装numpy库就在cmd输入pip install numpy

不过这种方法访问的的是国外的服务器,下载资源会很慢,下到最后还可能会报错,推荐使用第二种方法(使用国内的镜像网站安装)

2.使用国内的镜像网站安装

(1)直接百度搜索“库名+镜像安装”

例如安装numpy库就在百度搜“numpy镜像安装”

(2)cmd输入pip install -i 相关镜像网站 库名

例如安装numpy库就输入pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ numpy

python常用库安装镜像网站

阿里云

http://mirrors.aliyun.com/pypi/simple/


清华

https://pypi.tuna.tsinghua.edu.cn/simple/


中国科技大学

https://pypi.mirrors.ustc.edu.cn/simple/


华中理工大学

http://pypi.hustunique.com/


山东理工大学

http://pypi.sdutlinux.org/ 


豆瓣

http://pypi.douban.com/simple/

 

python常用库安装镜像CMD命令

 

numpy镜像安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy

 

matplotlib镜像安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple matplotlib

 

pandas镜像安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pandas

 

jieba镜像安装

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple jieba

 

posted @ 2022-11-17 16:10  淡淡的晓山横雾  阅读(632)  评论(0)    收藏  举报