1. 在线安装
pip install xx
如果网络不好可以使用国内镜像, pip install xx -i http://xxx
国内的几个常用镜像地址:
豆瓣 : https://pypi.douban.com/simple
中国科学科技大学 : https://mirrors.ustc.edu.cn/pypi/web/simple/
清华大学 :https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/
2. 离线安装
1. 下载好压缩包 ->解压 -> 在解压目录的当前文件夹下,打开终端
输入 : Python setup.py install
2. .whl文件安装 : 当前目录下运行 :pip install xxx.whl
3.pycharm换源
自行输入即可
安装第三方模块也可以直接在这里搜索安装
发表评论