Ich habe ein Problem bei der Installation von Conda-Channel-Paketen über den Sonatype Nexus Repository Manager (Version: PRO 3.16.1-02). Beispielsweise der folgende Code
conda install pytorch::pytorch==1.1.0
#is equivalent to:
#conda install --channel pytorch pytorch==1.1.0
druckt die folgende Fehlermeldung auf der Konsole:
Collecting package metadata (current_repodata.json): failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/pytorch/linux-64/current_repodata.json>
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.
ConnectTimeout(MaxRetryError("HTTPSConnectionPool(host='conda.anaconda.org', port=443): Max retries exceeded with url: /pytorch/linux-64/current_repodata.json (Caused by ConnectTimeoutError
(<urllib3.connection.VerifiedHTTPSConnection object at 0x7feb2d7f3c50>, 'Connection to conda.anaconda.org timed out. (connect timeout=9.15)'))",),)
Ich glaube, das Problem besteht darin, dass wenn ich einen Conda-Kanal angebe, der von Conda verwendet wirdhttps://conda.anaconda.org/pytorch/linux-64/current_repodata.jsonanstelle einer Nexus-URL (was nicht funktioniert, da ich mich hinter einem Proxy befinde und Nexus den Download für mich durchführen sollte). Meine Frage ist, wie ich Conda dazu bringen kann, die Nexus-URL zu verwenden oder irgendwie sicherzustellen, dass Nexus Python-Pakete von Conda-Kanälen herunterladen kann?
Mit freundlichen Grüße
Michael