


How to permanently modify the pip image source in windows and linux environments
1. How to modify the pip image source in the windows environment (taking python3.5 as an example)
(1): In the windows file manager, enter %APPDATA%<br>
<br>
(2): It will locate a new directory, create a new pip folder in the directory, and then go to the pip folder to create a new pip.ini file<br>
<br>
(3): Enter the following content in the newly created pip.ini file and it’s done<br>
[global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com
2. How to update pip source in Linux system (take centos, python2.7 as an example)
The modification method in the Linux environment is basically the same as the modification method in the Windows environment. Here is a brief summary:
(1): Create a folder named .pip under the user’s home directory
(2): Create a file named pip.conf in the created .pip folder
(3): Enter the following content in the pip.conf file, ok!!!
[global] timeout = 6000 index-url = http://pypi.douban.com/simple trusted-host = pypi.douban.com
Summary
The above is the entire content of this article. I hope that the method provided in this article can bring some help to everyone's study or work. If you have any questions, you can leave a message to communicate.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

How to update the latest version of Bybit Exchange? Will there be any impact if it is not updated?

deepseek web version entrance deepseek official website entrance

Pi Node Teaching: What is a Pi Node? How to install and set up Pi Node?
