Using Anaconda with conda-forge behind a corporate

2019-08-08 14:43发布

I'm trying to use the Anaconda environment on a Windows 10 system to install tensorflow 1.9.0. Unfortunately, I'm behind a firewall that blocks all access to the Amazon cloud (please don't ask why).

I know that I can install version 1.9.0 from here but this repo heavily relies on conda-forge.

Thus, to circumvent this issue I'm using the following command to (at least) install tensorflow 1.8.0:

 conda install -c https://repo.continuum.io/pkgs/main/win-64/ tensorflow-gpu=1.8.0

This results in the following output:

Solving environment: done

Package Plan

environment location: d:\Programs\Anaconda\Anaconda

added / updated specs: - tensorflow-gpu=1.8.0

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
bleach-1.5.0               |           py36_0          24 KB  conda-forge
html5lib-0.9999999         |           py36_0         182 KB  conda-forge
------------------------------------------------------------
                                       Total:         206 KB

The following NEW packages will be INSTALLED:

absl-py:             0.2.2-py36_0          defaults
astor:               0.6.2-py36_1          defaults
gast:                0.2.0-py36_0          defaults
grpcio:              1.12.1-py36h1a1b453_0 defaults
markdown:            2.6.11-py36_0         defaults
tensorboard:         1.8.0-py36he025d50_0  defaults
tensorflow-base:     1.8.0-py36h1a1b453_0  defaults
tensorflow-gpu-base: 1.8.0-py36h376609f_0  defaults
termcolor:           1.1.0-py36_1          defaults

The following packages will be UPDATED:

cudatoolkit:         8.0-4                 defaults --> 9.0-1                 defaults
cudnn:               6.0-0                 defaults --> 7.1.4-cuda9.0_0       defaults
numpy:               1.12.1-py36hf30b8aa_1 defaults --> 1.14.3-py36h9fa60d3_2 defaults
tensorflow:          1.1.0-np112py36_0     defaults --> 1.8.0-0               defaults
tensorflow-gpu:      1.1.0-np112py36_0     defaults --> 1.8.0-h21ff451_0      defaults

The following packages will be DOWNGRADED:

bleach:              2.1.3-py36_0          defaults --> 1.5.0-py36_0          conda-forge
html5lib:            1.0.1-py36_0          defaults --> 0.9999999-py36_0      conda-forge

Proceed ([y]/n)? y

Unfortunately, the packages bleach and html5lib are not on the default repo but on conda-forge (which is blocked) instead, resulting in:

CondaHTTPError: HTTP 503 SERVICE UNAVAILABLE for url https://conda.anaconda.org/conda-forge/win-64/bleach-1.5.0-py36_0.tar.bz2 Elapsed: 00:00.287467

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.

CondaHTTPError: HTTP 503 SERVICE UNAVAILABLE for url https://conda.anaconda.org/conda-forge/win-64/html5lib-0.9999999-py36_0.tar.bz2 Elapsed: 00:00.272954

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.

Any help would be highly appreciated. Thank you very much!

0条回答
登录 后发表回答