Install Tensorflow on Ubuntu


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Install Tensorflow on Ubuntu
# 1  
Old 07-28-2018
Install Tensorflow on Ubuntu

Hi,
Please, how can fix this error:



Code:
(myvenv)root@graphene-121:~# pip install --upgrade tensorflow
Downloading/unpacking tensorflow
  Cannot fetch index base URL Simple index
  Could not find any downloads that satisfy the requirement tensorflow
Cleaning up...
No distributions at all found for tensorflow
Storing debug log for failure in /root/.pip/pip.log
(myvenv)root@graphene-121:~# pip -V
pip 1.5.4 from /root/myvenv/local/lib/python2.7/site-packages (python 2.7)
(myvenv)root@graphene-121:~# python -V
Python 2.7.6
(myvenv)root@graphene-121:~#

Bests.
# 2  
Old 07-28-2018
Maybe try validating your tensorflow install first?

Try:

Code:
# Python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))

Did you get the output?

Code:
Hello, TensorFlow!

This User Gave Thanks to Neo For This Post:
# 3  
Old 07-28-2018
Code:
root@graphene-99:~# vim hi.py
root@graphene-99:~# python hi.py
Traceback (most recent call last):
  File "hi.py", line 1, in <module>
    import tensorflow as tf
ImportError: No module named tensorflow

# 4  
Old 07-28-2018
Looks like tensorflow might not be installed correctly.

Did you run?

Code:
pip show tensorflow

Maybe run what's above and post back the output?
# 5  
Old 07-28-2018
I use this Install TensorFlow on Ubuntu | TensorFlow to install tensorflow


But, i have these errors:


Code:
(venv)root@graphene-99:~/tensorflow# pip install -U pip
Cannot fetch index base URL Simple index
Could not find any downloads that satisfy the requirement pip in
./venv/lib/python2.7/site-packages
Downloading/unpacking pip
Cleaning up...
No distributions at all found for pip in ./venv/lib/python2.7/site-packages
Storing debug log for failure in /root/.pip/pip.log
(venv)root@graphene-99:~/tensorflow# pip -V
pip 1.5.4 from /root/tensorflow/venv/local/lib/python2.7/site-packages
(python 2.7)
(venv)root@graphene-99:~/tensorflow# pip install -U tensorflow
Downloading/unpacking tensorflow
  Cannot fetch index base URL Simple index
  Could not find any downloads that satisfy the requirement tensorflow
Cleaning up...
No distributions at all found for tensorflow
Storing debug log for failure in /root/.pip/pip.log

# 6  
Old 07-28-2018
Looks pretty clear that you should do a complete clean install; and if the install instructions you are using produce the same results; then find some better install instructions.

That would be my next move.
# 7  
Old 08-01-2018
Please, how can i install Tensorflow ? I have used these commands but it doesn't work..


Code:
 sudo -H pip3 install tensorflow  --proxy https://XXX.XX.XX.X:3128
 
 sudo -E pip3 install tensorflow  --proxy https://XXX.XX.XX.X:3128  



sudo -E pip install tensorflow  --proxy https://XXX.XX.XX.X:3128  



sudo -H pip install tensorflow  --proxy https://XXX.XX.XX.X:3128  



sudo  pip install tensorflow  --proxy https://XXX.XX.XX.X:3128   



Downloading/unpacking tensorflow  Cannot fetch index base URL https://pypi.python.org/simple/   





(venv)root@graphene-62:~/tensorflow# pip -V pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg (python 2.7) 



(venv)root@graphene-62:~/tensorflow# python -V Python 2.7.6 



(venv)root@graphene-62:~/tensorflow# uname -a Linux graphene-62 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux (venv)root@graphene-62:~/tensorflow# uname -m x86_64 (venv)root@graphene-62:~/tensorflow#

Is there another way to download and install Tensorflow?
Kind regards.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Ubuntu

Anyone install Autosys on Ubuntu?

I am a developer. A lot of the clients I work for use the Autosys scheduler. In order to educate myself more I would like to install this on my Ubuntu laptop. I have 16.04 btw (pretty sure, don't have it with me atm) Any feedback would be appreciated. Before I purchase an install. ... (0 Replies)
Discussion started by: cwegescheide
0 Replies

2. Ubuntu

Re-install Ubuntu 14.04 from system with Ubuntu on it

I need to re-install ubuntu on a system with ubuntu 14.04 already installed. I have the cd but can not seem to boot from it or find the installer. Is there a way to re-install from the command line or how do I do a fresh re-install? Thank you :) ---------- Post updated at 10:13 AM... (2 Replies)
Discussion started by: cmccabe
2 Replies

3. Ubuntu

How to Install TCSH package in Ubuntu 11?

I am trying to install tcsh package in ubuntu 11 When i tried to invoke the tcsh,i was prompted to contact administrator to install tcsh package. Since i am also the admin on my system its my job to install tcsh :D I have downloaded tcsh package named "tcsh-6.17.00.tar", since i don not have... (12 Replies)
Discussion started by: animesharma
12 Replies

4. Ubuntu

What is the easiest way to install Ubuntu?

I am planning to dual boot Windows XP and Ubuntu 9.04, I have already burned Ubuntu into a CD and have also downloaded the ISO. But when I go to My Computer to start the installation, a different icon appears. And when I open it with ISO Buster, it opens up separately. I'm confused on what to... (5 Replies)
Discussion started by: Anna Hussie
5 Replies

5. Ubuntu

Ubuntu Ultimate install from system.

I want to install Ubuntu Ultimate 2.9. I downloaded ISO form its site and burnt it on DVD and tried to install it. But my DVD reader is not working properly so installation fails in between it. I have another OS as Windows. Can any body tell that if I can install Ubuntu Ultimate directly from... (8 Replies)
Discussion started by: nixhead
8 Replies

6. Ubuntu

unable to install package on Ubuntu

Hi all, I am working on Ubuntu 7.10 and I want to install libssl-dev_0.9.8a-7ubuntu0.13_i386.deb. So tryied it with apt-get command but getting the following error-- Then I downloaded .deb file and attempt to install it with package installer but again unable to install it and getting the... (3 Replies)
Discussion started by: smartgupta
3 Replies

7. Ubuntu

XP and Linux (Ubuntu) on same disk, Can I install Ubuntu on not-yet partitioned portion of disk?

My PC (Esprimo, 3 yeas old) has one hard drive having 2 partitions C: (80 GB NTFS, XP) and D: (120 GB NTFS, empty) and and a 200 MB area that yet is not-partitioned. I would like to try Ubuntu and to install Ubuntu on the not-partitioned area . The idea is to have the possibility to run... (7 Replies)
Discussion started by: C.Weidemann
7 Replies

8. Ubuntu

how to install g++ in ubuntu?

on giving the command sudo apt-get install build-essentials it asks for password then the following is displayed Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package build-essentials (5 Replies)
Discussion started by: sparkle
5 Replies

9. UNIX for Dummies Questions & Answers

Would like to install x86 desktop Ubuntu over AMD64 Ubuntu server

My intention was to build a dual boot XP Pro 64 and Ubuntu media server. I had installed the AMD64 version of Ubuntu 8.10 server and thought that I would be able to install Apache server. I need a GUI to work in. I tried to boot and install Mythbuntu 32 bit 8.10, but my machine now won't recognize... (0 Replies)
Discussion started by: docflyboy
0 Replies
Login or Register to Ask a Question