I want to install tensorflow in an anaconda environment on a system without internet connection, and where I have not got root access (i.e. I want to install it to my local user only)
I have downloaded the .whl files of tensorflow and the required dependencies and copied them to the machine I want to use. Once I've entered my anaconda environment I started installing the packages using
pip install -b working_directory/build -t working_directory/target package.whl
But when I want to install a package which depends on an earlier installed package, it cannot find it.
So I wonder, how can you tell pip where to look for dependencies? Can I install tensorflow in an easier way, still offline and without root?
I am using PyCharm for the development with anaconda. I was also facing issue while installing tensorflow using conda, I also installed the python 3.6 and used the steps given on the tensorflow website. But finally I solved this using below steps and made it work on pyCharm:
Step 1: I downloaded binaries (.whl) file of tensorflow (The links of binaries are given on the git page https://github.com/tensorflow/tensorflow)
Step 2: Then I installed the tensorflow offline using below command:
Step 3: Then Tensorflow files have been created at below location:
I copied these files and pasted in the Anaconda site-packages (Anaconda3\Lib\site-packages).
Step 4: Tensorflow is installed but below error has come when running the basic program:
Step 5: I have solved this error using pip installation of protocol buffer
Step 6: After this 3 files “protobuf-3.3.0-py3.6-nspkg.pth”, “protobuf-3.3.0-py3.6.egg-info” and “google” are created at the below location:
These three file should be pasted at the Anaconda site-packages. (Anaconda3\Lib\site-packages)
Step 6: The I ran the below program and It worked:
If there will be still some Errors then all dependencies have to be downloaded and installed similar as step 2 or 5 from https://pypi.python.org/pypi/tensorflow. Important note: I was using the Windows command prompt with admin Access.