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

相关推荐
猫头虎19 小时前
如何解决 OpenClaw “Pairing required” 报错:两种官方解决方案详解
网络·windows·网络协议·macos·智能路由器·pip·scipy
淮北4943 天前
pip虚拟环境包的问题
开发语言·python·pip
Albert Edison3 天前
【Python】函数
java·linux·python·pip
不懒不懒3 天前
【机器学习:下采样 VS 过采样——逻辑回归在信用卡欺诈检测中的实践】
python·numpy·scikit-learn·matplotlib·pip·futurewarning
规划酱5 天前
Arcgis中pip安装ezdxf部分GIS有pyparsing安装失败的情况处理
python·arcgis·pip·规划酱
凉忆-5 天前
llama-factory训练大模型
python·pip·llama
肆意飞扬5 天前
Python篇:使用conda、pip的一些命令记录
python·conda·pip
Warren986 天前
Pytest Fixture 作用域详解:Function、Class、Module、Session 怎么选
面试·职场和发展·单元测试·pytest·pip·模块测试·jira
Java后端的Ai之路10 天前
【Python小知识】-pip install xxx 命令安装的 ,在电脑的哪个盘?
开发语言·python·pip·pip install
gsgbgxp11 天前
安装库是优先用conda还是pip
深度学习·ubuntu·conda·pip