Home>

On Windows 10
I am trying to install Tensorflow with Anaconda.
The terminal that constructs the environment (terminal A) cannot connect to the Internet for security reasons.
Necessary materials are coming from terminal B with internet connection to terminal A via the medium.

Install Anaconda5.2 (Python3.6) on device A
I would like to do Tensorflow = 1.1 (tensorflow-1.1.0-cp36-cp36m-win_amd64.whl)
When "pip install tensorflow-1.1.0-cp36-cp36m-win_amd64.whl" is executed on Anaconda, the following error occurs and it cannot be executed.
I would like to know how to handle this event, how to install Tensorflow offline, and if any.

* The command is executed in the directory where the whl file exists.

Error message

Collecting protobuf>= 3.2.0 (from tensorflow == 1.1.0)
Retrying (Retry (total = 4, connect = None, read = None, redirect = None, status = None)) after connection broken by'ConnectTimeoutError (<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021458E2F438> ;,&apos ;Connection to pypi.python.org timed out. (Connect timeout = 15)')&apos ;:/simple/protobuf/
Retrying (Retry (total = 3, connect = None, read = None, redirect = None, status = None)) after connection broken by'ConnectTimeoutError (<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021458E2F7B8> ;,&apos ;Connection to pypi.python.org timed out. (Connect timeout = 15)')&apos ;:/simple/protobuf/
Retrying (Retry (total = 2, connect = None, read = None, redirect = None, status = None)) after connection broken by'ConnectTimeoutError (<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021458E2FF60> ;,&apos ;Connection to pypi.python.org timed out. (Connect timeout = 15)')&apos ;:/simple/protobuf/
Retrying (Retry (total = 1, connect = None, read = None, redirect = None, status = None)) after connection broken by'ConnectTimeoutError (<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021458E2FEB8> ;,&apos ;Connection to pypi.python.org timed out. (Connect timeout = 15)')&apos ;:/simple/protobuf/
Retrying (Retry (total = 0, connect = None, read = None, redirect = None, status = None)) after connection broken by'ConnectTimeoutError (<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x0000021458E2F898> ;,&apos ;Connection to pypi.python.org timed out. (Connect timeout = 15)')&apos ;:/simple/protobuf/
Could not find a version that satisfies the requirement protobuf>= 3.2.0 (from tensorflow == 1.1.0) (from versions:)
No matching distribution found for protobuf>= 3.2.0 (from tensorflow == 1.1.0)

  • Answer # 1

    Cause of the problem:
    Dependent library protobuf is not available

    Action:
    Bring the wheel or sauce.

    Looks like there are many more ... It's good to write out the dependencies and take them one by one, but it's a lot of work.
    It may be quicker to think about how to take the whole environment built on other machines (I don't know for security reasons).

  • Answer # 2

    It looks good to use thepip install --downloadoption or thepip download ...command.

    Installing a deep learning environment offline on Windows

  • Answer # 3

    Thank you for your comments.

    I have implemented and studied the method you taught, depending on the content.
    Because it does n’t work or takes time,
    This time, as a special support, we decided to allow online connection and then run pip to install it. (Installation was successful)

    I ’m sorry to tell you,
    The problem was solved successfully.

    It's difficult to build an offline environment. . .

  • Answer # 4

    It's not a countermeasure.

    Establishing a docker environment in a network connection environment
    Register the image with a private Docker registry server
    Pull from the above registry server to the PC required on the LAN

    How to set up a private Docker registry server
    https://qiita.com/rsakao/items/617f54579278173d3c20