1)临时使用镜像源下载Python包:以numpy为例:pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple其他镜像源地址:阿里云:http://mirrors.aliyun.com/pypi/simple/豆瓣:http://pypi.douban.com/...

1)临时使用镜像源下载Python包:
以numpy为例:
pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
其他镜像源地址:
阿里云:http://mirrors.aliyun.com/pypi/simple/
豆瓣:http://pypi.douban.com/simple/
2)永久更改镜像源
在 “C:\Users\用户名” 文件夹下,添加pip文件夹,文件夹内新建pip.ini文件,内容为:
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
沃梦达教程
本文标题为:Python:Windows下更改Python源至清华镜像源


基础教程推荐
猜你喜欢
- Pygame鼠标进行图片的移动与缩放案例详解 2023-08-11
- python中文件操作与异常的处理图文详解 2023-08-08
- python 基于aiohttp的异步爬虫实战详解 2022-10-20
- Python数据结构列表 2023-08-09
- Python YAML文件的读写操作详解 2022-08-30
- Python名片管理系统彩色控制台版实现 2022-08-30
- Python多处理比内核启动更多的进程 2023-11-11
- Install OpenCV-Python in Ubuntu 2023-09-04
- Python实现视频转换为字符画详解 2023-08-09
- Python变量教程之全局变量和局部变量 2022-08-30