current position:Home>Python solve the problem of slow download and installation of Pip
Python solve the problem of slow download and installation of Pip
2022-07-25 11:25:42【fatfatmomo】
Give Way PIP Source uses domestic image , Improve download speed and installation success rate .
about Python For development users ,PIP It's common to install software packages . But the download speed of foreign source is too slow , A waste of time . And there are often installation errors after downloading . So the PIP Replace the installation source with the domestic image , Can greatly improve the download speed , The installation success rate can also be improved .
Domestic source :
new edition ubuntu Required https Source , it is to be noted that .
tsinghua :https://pypi.tuna.tsinghua.edu.cn/simple
Alibaba cloud :http://mirrors.aliyun.com/pypi/simple/
University of science and technology of China https://pypi.mirrors.ustc.edu.cn/simple/
Huazhong University of technology :http://pypi.hustunique.com/
Shandong University of technology :http://pypi.sdutlinux.org/
douban :http://pypi.douban.com/simple/
Temporary use :
Can be used in pip When adding parameters -i https://pypi.tuna.tsinghua.edu.cn/simple
for example :pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspider, In this way, you can install the image from Tsinghua pyspider library .
Permanent modification , Once and for all :
Linux Next , modify ~/.pip/pip.conf ( No create a folder and file . Folder to add “.”, Means to hide the folder )
The contents are as follows :
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
windows Next , Directly in user Create a pip Catalog , Such as :C:\Users\xx\pip, New file pip.ini. Same as above .
Or do not replace the installation source , Try a stupid way :pip --default-timeout=1000 install -u xxx (xxx Name the package you want to install )
Original web page :http://www.cnblogs.com/microman/p/6107879.html
copyright notice
author[fatfatmomo],Please bring the original link to reprint, thank you.
https://en.pythonmana.com/2022/206/202207251026258958.html
The sidebar is recommended
- Python split() function!
- Python programming problem -- how to find the full arrangement of a group of numbers
- Talk about several input methods of Python!
- Automatic classification of Python files (no longer worry about missing files)
- String (Python)
- 15 useful Python libraries in Data Science
- [untitled] Python -- common code 1 for file processing (make file processing easy!)
- Use MATLAB, C, python to write programs, judge and output all primes between M and N!
- Use Python to draw plant leaves from the perspective of probability!
- Anaconda configuration environment that you must learn to get started with python (with pictures and steps)
guess what you like
Python inputs a number and finds all its prime factors
Python calculates the length of the last word of a string separated by spaces. The length of the string is less than 5000
Python completes n[str] decompression
Random numbers of Python Programming Problems
The children of two classes in Python got mixed up when they lined up. Each child knew whether he was in the same class with the previous child, and found out the children in the same class
Python separates strings by length, and if not enough, 0 is added
Python converts hexadecimal to hexadecimal, and hexadecimal to hexadecimal.
Python2 realizes string flipping
Python2 realizes sentence reverse order
Python realizes the number, according to the reverse order of the input order, and removes duplicates
Random recommended
- Python consolidated table records: if the first column is the same, the second column is summed
- Python2 string sorting
- Python built-in binary conversion function
- Ubuntu has Python libraries installed and cannot run command not found from the command line
- Python: realize the function of sending file (with complete source code)
- Python realizes the complete visual version of quantile map with Nanhai Jiuduan line (with code and data)
- Time points are classified into different time periods, statistics of data volume in different time periods, Matplotlib drawing ranking, Python
- [Python ticket grabbing artifact] is the train ticket gun ticket software reliable? Actual measurement - the ultimate strategy.
- Python: implement Koch snowflake Koch snowflake algorithm (with complete source code)
- Python drawing multi-dimensional thematic map
- Python: implement Max sub array algorithm (with complete source code)
- Python: implement the minimum cost path algorithm (with complete source code)
- Python: realize the minimum coin change algorithm (with complete source code)
- Python: implement the maximum and continuous subsequence algorithm (with complete source code)
- Python: realize the function of receiving file (with complete source code)
- Python: implement the minimum partition algorithm (with complete source code)
- Python: give an integer n and return the minimum number of steps to 1 algorithm (with complete source code)
- Python: implement Ohms law algorithm (with complete source code)
- Python: implement the optimal binary search tree algorithm (with complete source code)
- Python: bar cutting algorithm for dynamic programming (with complete source code)
- Python: implement subset_ Generation subset generation algorithm (with complete source code)
- Python: implement sum of subset subset summation algorithm (with complete source code)
- Python: implement carrier concentration algorithm (with complete source code)
- Python: implement Julia set algorithm (with complete source code)
- Python: implement coulombs law algorithm (with complete source code)
- Python: implement Mandelbrot Mandelbrot set algorithm (with complete source code)
- Python: realize equal monthly installment algorithm (with complete source code)
- Vernacular spatial statistics 30: geostatistics (6) exploratory data analysis (2) and python implementation (with source code)
- What is the difference between Python slicing and label slicing?
- Built in functions in Python [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
- Python learning notes -- day15 built-in modules and development specifications
- What does pandas arithmetic mean?
- Python problem Ping
- Python basic white -- input and output
- Python foundation -- data type operator
- Python basic judgment statement (if elif)
- Python Xiaobai foundation -- List Foundation
- Python Xiaobai foundation -- List
- Python Xiaobai foundation -- circular statement
- Python Xiaobai foundation -- string