How to solve ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443) with pip?
Use --default-timeout=100
parameter with the install:
sudo pip install --default-timeout=100 future
Pip Install Timeout Issue
PIP
has a default timeout of 15 sec
, reference guide. Pandas
is a relatively big file, at 10MB, and it's dependant Numpy
, at 20MB could still be needed (if it is not installed already.). In addition, your network connection may be slow. Therefore, set PIP
to take longer time by, for example, giving it 1000 sec
:
pip --timeout=1000 install pandas
as suggested by @Pouya Khalilzad.
error socket.timeout: The read operation timed out while installing a python module
I tried many times in both system environment and virtual environment, and reached 100% of downloading once (~850MB), then it gave me that error again ! So, the problem obviously was not in the downloading step, but in the direct installation after it.
So I thought about splitting the two steps:
first download the module using:
$ wget "https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-2.0.0/en_core_web_lg-2.0.0.tar.gz"
then install it using
$ pip install en_core_web_lg-2.0.0.tar.gz
and it worked smoothly.
It is true that I got around the original problem, but I still don't know what caused it to happen in the first place (if you knew, kindly write an answer for it).
Disable `pip install` Timeout For Slow Connections
Use option --timeout <sec>
to set socket time out.
Also, as @Iain Shelvington mentioned, timeout = <sec>
in pip configuration will also work.
TIP: Every time you want to know something (maybe an option) about a command (tool), before googling, check the manual page of the command by using man <command>
or use <command> --help
or check that command's docs online
will be very useful too (Maybe better than Google).
Pip with broken connection: connection broken by 'ReadTimeoutError(HTTPSConnectionPool(host='pypi.org', port=443): Read timed out.
I eventually scanned through this one below, that although it's for Windows it actually worked on Ubuntu linux too!!
Pip ReadTimeoutError in Windows 10
and the way to fix it is then simply disable ipv6 with the following commands, and done!
$ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
$ sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
Related Topics
Install Ssh Server on Embedded Device
Linux Telnet Vt100 Return Key Sends ^M
Ssh Command Output to Save in a Text File in Shell Script
Problem of Understanding Clock_Gettime
Dreaming of Making My Own Os- What Should I Use? (Suggestions)
Where The Structure "Struct Page" Is Stored on The Linux Kernel
How to Prevent Remote Branch Deletion in Git Without Using Gitolite
Can't Install Using Yum in Rhel 7.1
Svn Keeps Prompting Me for Passwords and Refuses to Cache My Credentials
What Is a Good Interface for a Linux Device Driver for a Co-Processing Peripheral
What Is The Downside of Updating Arm Ttbr(Translate Table Base Register)
How to Make Libusb Library Visible to Another Program
How to Invoke Any Kernel Function
Building /Lib/Modules/$(Uname -R)/Build While Compiling a Kernel
How to Identify Padding Scheme Used in Rsa Signature of a Certificate, Using Openssl
Git - Crlf Issue in Windows + Linux Dual Boot
How to Compile a Node C++ Addon So That I Can Use Distribute It on Amazon Aws