Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Pip uses domestic mirror sources

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Commonly used domestic images:

(1) Aliyun http://mirrors.aliyun.com/pypi/simple/

(2) Douban http://pypi.douban.com/simple/

(3) https://pypi.tuna.tsinghua.edu.cn/simple/ of Tsinghua University

(4) http://pypi.mirrors.ustc.edu.cn/simple/ of University of Science and Technology of China

(5) http://pypi.hustunique.com/ of Huazhong University of Science and Technology

Method 1: use it temporarily

Add the parameter-I and the image address

For example:

Pip install-I https://pypi.tuna.tsinghua.edu.cn/simple scrapy

Method 2: permanently modify

Linux:

Modification: pip.conf did not create a folder or file. Add "." to the folder to indicate that it is a hidden folder.

[global]

Index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]

Trusted-host = https://pypi.tuna.tsinghua.edu.cn

Windows:

Create a pip directory directly in the user directory, such as: C:\ user\ xx\ pip, and then create a new file pip.ini with the following contents:

[global]

Index-url = https://pypi.tuna.tsinghua.edu.cn/simple

[install]

Trusted-host = https://pypi.tuna.tsinghua.edu.cn

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report