I have successfully installed the .whl file for python 3.5 but when I try to import tensorflow in python 3.5, it raises a ImportError: No module named ‘tensorflow’.
I’m working on a JTX2 and flashed with Jetpack 3.3
Here is the info from my terminal:
nvidia@tegra-ubuntu:~$ sudo -H pip3 install tensorflow-1.11.0-cp35-cp35m-linux_aarch64.whl --user
Processing ./tensorflow-1.11.0-cp35-cp35m-linux_aarch64.whl
Requirement already satisfied: gast>=0.2.0 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (0.2.2)
Requirement already satisfied: setuptools<=39.1.0 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (39.1.0)
Collecting keras-applications>=1.0.5 (from tensorflow==1.11.0)
Downloading https://files.pythonhosted.org/packages/90/85/64c82949765cfb246bbdaf5aca2d55f400f792655927a017710a78445def/Keras_Applications-1.0.7-py2.py3-none-any.whl (51kB)
|████████████████████████████████| 61kB 112kB/s
Requirement already satisfied: astor>=0.6.0 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (0.7.1)
Requirement already satisfied: numpy>=1.13.3 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (1.16.3)
Requirement already satisfied: wheel>=0.26 in /usr/lib/python3/dist-packages (from tensorflow==1.11.0) (0.29.0)
Requirement already satisfied: grpcio>=1.8.6 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (1.20.1)
Requirement already satisfied: absl-py>=0.1.6 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (0.7.1)
Requirement already satisfied: six>=1.10.0 in /usr/lib/python3/dist-packages (from tensorflow==1.11.0) (1.10.0)
Requirement already satisfied: protobuf>=3.6.0 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (3.7.1)
Collecting tensorboard<1.12.0,>=1.11.0 (from tensorflow==1.11.0)
Downloading https://files.pythonhosted.org/packages/9b/2f/4d788919b1feef04624d63ed6ea45a49d1d1c834199ec50716edb5d310f4/tensorboard-1.11.0-py3-none-any.whl (3.0MB)
|████████████████████████████████| 3.0MB 169kB/s
Requirement already satisfied: termcolor>=1.1.0 in /usr/local/lib/python3.5/dist-packages (from tensorflow==1.11.0) (1.1.0)
Collecting keras-preprocessing>=1.0.3 (from tensorflow==1.11.0)
Downloading https://files.pythonhosted.org/packages/c0/bf/0315ef6a9fd3fc2346e85b0ff1f5f83ca17073f2c31ac719ab2e4da0d4a3/Keras_Preprocessing-1.0.9-py2.py3-none-any.whl (59kB)
|████████████████████████████████| 61kB 225kB/s
Collecting h5py (from keras-applications>=1.0.5->tensorflow==1.11.0)
Downloading https://files.pythonhosted.org/packages/43/27/a6e7dcb8ae20a4dbf3725321058923fec262b6f7835179d78ccc8d98deec/h5py-2.9.0.tar.gz (287kB)
|████████████████████████████████| 296kB 195kB/s
Requirement already satisfied: enum34>=1.0.4 in /usr/local/lib/python3.5/dist-packages (from grpcio>=1.8.6->tensorflow==1.11.0) (1.1.6)
Requirement already satisfied: futures>=2.2.0 in /usr/local/lib/python3.5/dist-packages (from grpcio>=1.8.6->tensorflow==1.11.0) (3.1.1)
Requirement already satisfied: werkzeug>=0.11.10 in /usr/local/lib/python3.5/dist-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow==1.11.0) (0.15.2)
Requirement already satisfied: markdown>=2.6.8 in /usr/local/lib/python3.5/dist-packages (from tensorboard<1.12.0,>=1.11.0->tensorflow==1.11.0) (3.1)
Building wheels for collected packages: h5py
Building wheel for h5py (setup.py) … done
Stored in directory: /root/.cache/pip/wheels/0a/d0/cd/9d2f4209cc43ae780d57da21eac9f946cce362d62deed52893
Successfully built h5py
Installing collected packages: h5py, keras-applications, tensorboard, keras-preprocessing, tensorflow
WARNING: The script tensorboard is installed in ‘/root/.local/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
WARNING: The scripts freeze_graph, saved_model_cli, tensorboard, tflite_convert, toco and toco_from_protos are installed in ‘/root/.local/bin’ which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed h5py-2.9.0 keras-applications-1.0.7 keras-preprocessing-1.0.9 tensorboard-1.11.0 tensorflow-1.11.0
WARNING: You are using pip version 19.1, however version 19.1.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
After these warnings, I have added /root/.local/bin to PATH in ~/.bashrc but still has no luck. Since these warnings is about tensorboard, I suppose they shouldn’t be a problem while import tensorflow in python.
And here is the python error:
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import tensorflow as tf
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named ‘tensorflow’
exit()