In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about the reasons for the failure of python pip install under Linux, which may not be well understood by many people. in order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
Question:
Retrying (Retry (total=4, connect=None, read=None, redirect=None, status=None) after connection broken by 'ConnectTimeoutError appears in the installation package
Solution:
Pip install selectivesearch-I http://pypi.douban.com/simple-- trusted-host pypi.douban.com
There is a problem with the system using the source by default and the installation failed.
The use method is very simple, directly-I plus url can! As follows:
Pip install pip-i pip install-- upgrade pip-I https://pypi.tuna.tsinghua.edu.cn/simple/
If there is an error in untrust, you can use a website that begins with https, or use the command:
Pip install selenium-I http://pypi.douban.com/simple-- trusted-host pypi.douban.com
If you want to configure it as the default source, the method is as follows:
Need to create or modify configuration files (usually created)
The file of linux is in ~ / .pip/pip.conf
Windows at% HOMEPATH%\ pip\ pip.ini)
Modify the content as follows:
[global] index-url = http://pypi.douban.com/simple[install]trusted-host=pypi.douban.com
This way, when installing using pip, the image will be called by default.
The python scripts that temporarily install packages from other sources are as follows:
#! / usr/bin/python import os package = raw_input ("Please input the package which you want to install!\ n") command = "pip install% s-I http://pypi.mirrors.ustc.edu.cn/simple-- trusted-host pypi.mirrors.ustc.edu.cn"% packageos.system (command)
I used ananconda to change the source method:
# see what kind of conda config the current cofig is-- show# configuration source conda config-- add channels' https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'conda config-- set show_channel_urls yes # Delete source # conda config-- remove channels'. After reading the above, do you have any further understanding of the reason for the failure of python pip install under Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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.