Por favor ayúdenme con este error
He instalado el módulo tensorflow en mi servidor y debajo está su información
15IT60R19@cpusrv-gpu-109:~$ pip show tensorflow Name: tensorflow Version: 1.0.0 Summary: TensorFlow helps the tensors flow Home-page: http://tensorflow.org/ Author: Google Inc. Author-email: opensource@google.com License: Apache 2.0 Location: /home/other/15IT60R19/anaconda2/lib/python2.7/site-packages Requires: mock, numpy, protobuf, wheel, sixPero cuando intento importar tensorflow, aparece el siguiente error
>>> import tensorflow as tf Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named tensorflowMi versión de python es la siguiente
Python 2.7.12 |Anaconda 2.5.0 (64-bit)| (default, Jul 2 2016, 17:42:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.orgHe probado las soluciones dadas en sol1
no tengo acceso sudo al servidor solo puedo usar pip para instalar cualquier modulo
Intente instalar tensorflow nuevamente con la versión que desee y con la opción --ignore-installed como:
pip install tensorflow==1.2.0 --ignore-installedResolví el mismo problema usando este comando.
Tuve un problema más básico cuando recibí este error.
Las instrucciones de "Valide su instalación" dicen que escriba: python
Sin embargo, tengo ambos 2.7 y 3.6 instalados. Debido a que usé pip3 para instalar tensorflow, necesitaba escribir: python3
Usando la versión correcta, podría importar el módulo "tensorflow".
Verifique si Tensorflow se instaló correctamente usando:
pip3 show tensorflowSi obtienes algo como
Name: tensorflow Version: 1.2.1 Summary: TensorFlow helps the tensors flow Home-page: http://tensorflow.org/ Author: Google Inc. Author-email: opensource@google.com License: Apache 2.0 Location: /usr/local/lib/python3.5/dist-packages Requires: bleach, markdown, html5lib, backports.weakref, werkzeug, numpy, protobuf, wheel, sixPuede intentar agregar la ruta de su ubicación de tensorflow al:
export PYTHONPATH=/your/tensorflow/path:$PYTHONPATH.