Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow install on Windows with anaconda and no internet connection

I can not install Tensorflow on Windows because there in no internet connection based on commpany's security policy.

I just installed anaconda and python by transmiting files with intranet.

Please let me know how to install that with no internet connection.

==========================================================================

In addition, when I used the below command after installing tensorflow, I found other problems..

     Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)] on win32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import tensorflow as tf
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File "C:\Users\Daisy\Anaconda3\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
     from tensorflow.python import *
   File "C:\Users\Daisy\Anaconda3\lib\site-packages\tensorflow\python\__init__.py", line 63, in <module>
     from tensorflow.core.framework.graph_pb2 import *
   File "C:\Users\Daisy\Anaconda3\lib\site-packages\tensorflow\core\framework\graph_pb2.py", line 6, in <module>
     from google.protobuf import descriptor as _descriptor
 ImportError: No module named 'google'

I don't know how to solve this one.

like image 807
Daisy Avatar asked Oct 20 '25 16:10

Daisy


1 Answers

If you can download the whl file and transfer it to your workstation, then you can run:

pip.exe install --upgrade --no-deps <tensorflow whl file name>

This should avoid trying to connect to download tensorflow dependencies, as anaconda already has most of these.

like image 60
gunan Avatar answered Oct 23 '25 06:10

gunan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!