Linux configuration pip Tsinghua mirror source

1. Check if there is a hidden folder.pip in the root directory of the current user

Take the root account as an example here, first pass cd cdThe c d command switches to the current user root directory,pwd pwdThe p w d command looks at the working directory, that is, the current directory, and then usesll lll command to view all folders (including hidden folders) and files, and found no hidden folders. pip

insert image description here

2. Create a hidden folder .pip and create a configuration file named pip.conf

Create a hidden folder .pip through the shell command, then switch the current directory to the .pip folder, and then create a pip.conf configuration file

insert image description here

3. Edit the pip.conf configuration file, write the Tsinghua source image configuration information and save it

insert image description here
insert image description here

4. View the contents of the pip.conf configuration file, the configuration is successful

insert image description here

Guess you like

Origin blog.csdn.net/m0_46223009/article/details/125905623