Ich habe Probleme, einen Proxy für Anaconda Install Conda auf einem Windows 7-Computer zu durchlaufen. Wie verwende ich einen Proxy?
Ich musste eine .condarc-Datei im Ordner C:\Users\username
erstellen.
Verwenden Sie die copy con .condarc
-Datei, falls diese nicht im Ordner darüber vorhanden ist.
Dateiinhalt ist:
proxy_servers:
http: http://username:[email protected]:8080
https: https://username:[email protected]:8080
Zwei Notizen:
http:
und http://...
muss ein Leerzeichen stehen.username:password
-Teil weg und es funktioniert immer nochUnter Windows 10 müssen Sie zusätzlich den Domainnamen im .condarc einrichten:
channels:
- admin
show_channel_urls: true
allow_other_channels: true
proxy_servers:
http: http://domainname\username:[email protected]:port
https: http://domainname\username:[email protected]:port
ssl_verify: true
In meinem Fall auf einem Linux-Computer hinter einem McAfee Web-Gateway-Proxy funktionierte nur das folgende Setup für Conda (ich habe den HTTP-Proxy entfernt): Hostname: ~ # cat .condarc Proxy-Server: https: https: // Domäne \ Benutzer: Kennwort @ Server: Port
hostname # conda install tensorflow Lösungsumgebung: fertig
umgebungsort:/anaconda3
hinzugefügte/aktualisierte Spezifikationen: - Tensorfluss
Die folgenden Pakete werden heruntergeladen:
package | build
---------------------------|-----------------
markdown-3.0.1 | py36_0 107 KB
gast-0.2.0 | py36_0 15 KB
libprotobuf-3.6.0 | hdbcaa40_0 4.1 MB
protobuf-3.6.0 | py36hf484d3e_0 610 KB
conda-4.5.12 | py36_0 1.0 MB
termcolor-1.1.0 | py36_1 7 KB
tensorflow-base-1.9.0 |mkl_py36h2ca6a6a_0 75.7 MB
grpcio-1.12.1 | py36hdbcaa40_0 1.7 MB
astor-0.7.1 | py36_0 43 KB
tensorboard-1.9.0 | py36hf484d3e_0 3.3 MB
tensorflow-1.9.0 |mkl_py36h6d6ce78_1 3 KB
absl-py-0.6.1 | py36_0 152 KB
_tflow_190_select-0.0.3 | mkl 2 KB
------------------------------------------------------------
Total: 86.7 MB
Die folgenden NEUEN Pakete werden installiert:
_tflow_190_select: 0.0.3-mkl
absl-py: 0.6.1-py36_0
astor: 0.7.1-py36_0
gast: 0.2.0-py36_0
grpcio: 1.12.1-py36hdbcaa40_0
libprotobuf: 3.6.0-hdbcaa40_0
markdown: 3.0.1-py36_0
protobuf: 3.6.0-py36hf484d3e_0
tensorboard: 1.9.0-py36hf484d3e_0
tensorflow: 1.9.0-mkl_py36h6d6ce78_1
tensorflow-base: 1.9.0-mkl_py36h2ca6a6a_0
termcolor: 1.1.0-py36_1
Die folgenden Pakete werden AKTUALISIERT:
conda: 4.5.4-py36_0 --> 4.5.12-py36_0
Fortfahren ([y]/n)? y
Pakete herunterladen und extrahieren Markdown-3.0.1 | 107 KB | ###################################### | 100% __. gast-0,2,0 | 15 KB | ###################################### | 100% Libprotobuf-3.6.0 | 4,1 MB | ###################################### | 100% Protobuf-3.6.0 | 610 KB | ###################################### | 100% Conda-4.5.12 | 1,0 MB | ###################################### | 100% Termcolor-1.1.0 | 7 KB | ###################################### | 100% Tensorflow-Basis-1.9. | 75,7 MB | ###################################### | 100% Grpcio-1.12.1 | 1,7 MB | ###################################### | 100% Astor-0,7,1 | 43 KB | ###################################### | 100% Tensorboard-1.9.0 | 3,3 MB | ###################################### | 100% Tensorflow-1.9.0 | 3 KB | ###################################### | 100% Absl-py-0,6,1 | 152 KB | ###################################### | 100% _ tflow_190_select-0. | 2 KB | ###################################### | 100% Vorbereiten der Transaktion: erledigt Überprüfen der Transaktion: erledigt Ausführen der Transaktion: erledigt
Auf Windows 10-Maschine auch. Das Format der akzeptierten Antwort führt zu einem Ladefehler, ungültige YAML.
Das Ändern von "//" in "\" hat das Problem für mich behoben.
proxy_servers:
http: http:\username:[email protected]:8080
https: https:\username:[email protected]:8080