惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

小陈同学 - 脚本

FFmpeg 从入门到熟练:玩转视频剪辑、压缩与滤镜的神级工具 Conda安装与镜像源配置 Python 绘制古风山水画 vi/vim 编辑器使用 Liunx系统安装node和pm2
PIP 更换国内安装源
Caleb · 2024-01-11 · via 小陈同学 - 脚本

AI摘要

将 pip 默认源替换为国内镜像,可临时加 -i 参数或永久修改配置文件,以显著提升 Python 包下载速度。

此内容根据文章生成,仅用于文章内容的解释与总结

修改源方法

临时使用

可在使用 pip 的时候在后面加上 -i 参数,指定 pip 源

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

永久修改

Linux

使用文本编辑工具打开 ~/.pip/pip.conf 文件 (如果没有当前文件夹或文件,请创建后操作) ,修改文件内容如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

Windows

WIN+R 打开用户目录 %HOMEPATH%,在此目录下创建 pip 文件夹,在 pip 目录下创建 pip.ini 文件, 内容如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

pip 国内镜像

厂商源地址
阿里云https://mirrors.aliyun.com/pypi/simple/
中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣https://pypi.douban.com/simple/
清华大学https://pypi.tuna.tsinghua.edu.cn/simple/

作者: 文章链接: https://reinness.com/posts/247 版权声明:  本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自小陈同学