Descripción del problema
Cuando conda instaló el paquete, la descarga se interrumpió, lo que provocó un error en la instalación y el mensaje de error es el siguiente:
Error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pk
gs/pro/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.
ConnectionError(MaxRetryError("HTTPSConnectionPool(host='repo.anaconda.com', por
t=443): Max retries exceeded with url: /pkgs/pro/noarch/repodata.json.bz2 (Cause
d by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0
x0000000005046400>: Failed to establish a new connection: [WinError 10061] No co
nnection could be made because the target machine actively refused it',))",),)
Análisis de causa
Esto se debe a que la red es inestable, lo que provoca que se agote el tiempo de espera de la conexión HTTP.
Solución
Establezca el tiempo de conexión, el comando de salida es el siguiente
conda config --set remote_read_timeout_secs 600.0
conda config --set remote_connect_timeout_secs 60.0
Si no se utiliza la fuente, se recomienda utilizar la conexión de origen para hacer la descarga más rápida. Fuente de Tsinghua .