In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Today, I would like to share with you how to make python pip install python package download faster relevant knowledge, detailed content, clear logic, I believe that most people are too aware of this knowledge, so share this article for your reference, I hope you have something to gain after reading this article, let's take a look at it.
Use domestic images to speed up package installation
Temporary use
You can add the parameter-I https://pypi.tuna.tsinghua.edu.cn/simple when using pip
For example: pip install-I https://pypi.tuna.tsinghua.edu.cn/simple pyspider, so the Pyspider library will be installed from the image on this side of Tsinghua University.
Permanent modification
Under Linux, modify ~ / .pip/pip.conf (create a folder and file without it. Add "." to the folder, indicating that it is a hidden folder)
The contents are as follows:
[global] index-url = https://pypi.tuna.tsinghua.edu.cn/simple[install]trusted-host=mirrors.aliyun.com
Under windows, create a pip directory directly in the user directory, and then create a new file pip.ini. (for example: C:\ Users\ Administrator\ pip\ pip.ini) same as above.
Command line operation
TUNA also provides an image of the Anaconda repository. Run the following command:
Conda config-add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config-add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config-set show_channel_urls yes
Or the University of Science and Technology of China:
Conda config-add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/ conda config-set show_channel_urls yes
If a mirror source website dies, if you change the source, remember to go to the root directory and delete the original Tsinghua image under the .condarc folder.
Run the above four lines of command to add the Anaconda Python free warehouse.
You can run a conda install numpy test.
These are all the contents of the article "how to make python pip install python package download faster". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.