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

How to quickly install Python module under Windows

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly introduces how to quickly install the Python module under Windows. It is very detailed and has a certain reference value. Interested friends must finish reading it!

1. ReadTimeoutError solution when installing pip under Windows

In general, ReadTimeoutError appears in PIP because it is given to the wall by GFW, so we can choose a domestic image to solve the problem. Create a new pip folder under C:\ Users\ Administrator\ under Windows, create a pip.ini file, copy the following code into it, and save it.

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

Reprint: https://blog.csdn.net/abcabc77777/article/details/53456453

2. Python pip changes domestic sources

Reprint: https://blog.csdn.net/qq_30754565/article/details/82777253

Some domestic images of pip

   Ali Cloud http://mirrors.aliyun.com/pypi/simple/

   https://pypi.mirrors.ustc.edu.cn/simple/ of University of Science and Technology of China

   douban http://pypi.douban.com/simple/

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

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

Modify the source method:

Temporary use:

You can specify the pip source by adding the-I parameter to the end when using pip

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

Permanent modification:

Linux:

Modify ~ / .pip/pip.conf (create one if you don't have one), as follows:

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

Windows:

Create a pip directory directly in the user directory, such as C:\ Users\ xx\ pip, and create a new file pip.ini, as follows

[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple are all the contents of the article "how to quickly install Python modules under Windows". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report