pip换源

windows环境下: 比如windows账号是 admin

那么建立 admin主目录下的 pip子目录,在此pip子目录下建立pip的配置文件:pip.ini

c:\users\admin\pip\pip.ini

复制代码
# coding: GBK
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
#清华大学:https://pypi.tuna.tsinghua.edu.cn/simple
#阿里云:http://mirrors.aliyun.com/pypi/simple/
#豆瓣:http://pypi.douban.com/simple/

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

原文链接:https://blog.csdn.net/skyyzq/article/details/113417832

相关推荐
Java后端的Ai之路3 天前
【Python小知识】-pip install xxx 命令安装的 ,在电脑的哪个盘?
开发语言·python·pip·pip install
gsgbgxp4 天前
安装库是优先用conda还是pip
深度学习·ubuntu·conda·pip
玄同7655 天前
深入理解 SQLAlchemy 的 relationship:让 ORM 关联像 Python 对象一样简单
人工智能·python·sql·conda·fastapi·pip·sqlalchemy
好好学习啊天天向上6 天前
C盘容量不够,python , pip,安装包的位置
linux·python·pip
好好学习啊天天向上6 天前
conda pip更新安装路径,解决C盘容易不够的问题
python·conda·pip·2025yfb3003605
小毅&Nora6 天前
【后端】【Python】① Windows系统下Python环境变量设置指南
python·pip
理智.6298 天前
根据requirements.txt 完成环境中的依赖库导入
python·conda·pip
万粉变现经纪人8 天前
如何解决 pip install pyodbc 报错 缺少 ‘cl.exe’ 或 ‘sql.h’(ODBC 头文件)问题
数据库·python·sql·网络协议·bug·ssl·pip
AlenTech9 天前
如何解决Ubuntu中使用系统pip报错的问题,error: externally-managed-environment
linux·ubuntu·pip
C系语言9 天前
python用pip生成requirements.txt
开发语言·python·pip