Install TensorFlow with Python3 on Ubuntu 16.04





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







6















When I try to install tensorflow package with pip3 on Ubuntu 16.04 I obtained this error message:




The directory '/home/federico/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/federico/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

tensorflow-0.7.1-cp34-none-linux_x86_64.whl is not a supported wheel on this platform.


How I can fix the problem?










share|improve this question

























  • I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

    – Nitin Kashyap
    May 9 '16 at 5:51


















6















When I try to install tensorflow package with pip3 on Ubuntu 16.04 I obtained this error message:




The directory '/home/federico/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/federico/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

tensorflow-0.7.1-cp34-none-linux_x86_64.whl is not a supported wheel on this platform.


How I can fix the problem?










share|improve this question

























  • I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

    – Nitin Kashyap
    May 9 '16 at 5:51














6












6








6


2






When I try to install tensorflow package with pip3 on Ubuntu 16.04 I obtained this error message:




The directory '/home/federico/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/federico/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

tensorflow-0.7.1-cp34-none-linux_x86_64.whl is not a supported wheel on this platform.


How I can fix the problem?










share|improve this question
















When I try to install tensorflow package with pip3 on Ubuntu 16.04 I obtained this error message:




The directory '/home/federico/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/federico/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

tensorflow-0.7.1-cp34-none-linux_x86_64.whl is not a supported wheel on this platform.


How I can fix the problem?







16.04 python3






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 6 '16 at 9:11









Videonauth

25.2k1275103




25.2k1275103










asked May 6 '16 at 9:03









Federico MaglianiFederico Magliani

4816




4816













  • I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

    – Nitin Kashyap
    May 9 '16 at 5:51



















  • I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

    – Nitin Kashyap
    May 9 '16 at 5:51

















I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

– Nitin Kashyap
May 9 '16 at 5:51





I'm also getting this error while installing tensorflow. You can try installing from sources to circumvent this.

– Nitin Kashyap
May 9 '16 at 5:51










2 Answers
2






active

oldest

votes


















6














The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.



You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.



For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:



wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl





share|improve this answer


























  • Python has "wheels" and "eggs", but is this what you meant by "peep"?

    – nobar
    Jun 1 '16 at 0:53



















1














use pip --- for python2
pip3 -- for python3
recommencement to use sudo



pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl 





share|improve this answer



















  • 1





    Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

    – Abhi
    Apr 6 at 16:51














Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f768372%2finstall-tensorflow-with-python3-on-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.



You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.



For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:



wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl





share|improve this answer


























  • Python has "wheels" and "eggs", but is this what you meant by "peep"?

    – nobar
    Jun 1 '16 at 0:53
















6














The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.



You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.



For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:



wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl





share|improve this answer


























  • Python has "wheels" and "eggs", but is this what you meant by "peep"?

    – nobar
    Jun 1 '16 at 0:53














6












6








6







The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.



You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.



For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:



wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl





share|improve this answer















The issue is that Ubuntu 16 uses Python3.5 but Tensorflow only provides a wheel for Python 3.4 (indicated by 'cp34' in "tensorflow-0.7.1-cp34-none-linux_x86_64.whl"). Luckily the Wheel is actually compatible with Python 3.5, so you don't need to compile from source.



You need to download the wheel, rename it to prevent the python 3.4 check from failing, and then install by passing the renamed file to pip.



For the current version of Tensorflow (peeps in the future, check the website for the latest version and adapt commands below if necessary) run:



wget https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl
mv tensorflow-0.8.0-cp34-cp34m-linux_x86_64.whl tensorflow-0.8.0-cp35-none-linux_x86_64.whl
pip install tensorflow-0.8.0-cp35-none-linux_x86_64.whl






share|improve this answer














share|improve this answer



share|improve this answer








edited May 15 '16 at 19:40

























answered May 15 '16 at 19:21









SixhobbitsSixhobbits

212128




212128













  • Python has "wheels" and "eggs", but is this what you meant by "peep"?

    – nobar
    Jun 1 '16 at 0:53



















  • Python has "wheels" and "eggs", but is this what you meant by "peep"?

    – nobar
    Jun 1 '16 at 0:53

















Python has "wheels" and "eggs", but is this what you meant by "peep"?

– nobar
Jun 1 '16 at 0:53





Python has "wheels" and "eggs", but is this what you meant by "peep"?

– nobar
Jun 1 '16 at 0:53













1














use pip --- for python2
pip3 -- for python3
recommencement to use sudo



pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl 





share|improve this answer



















  • 1





    Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

    – Abhi
    Apr 6 at 16:51


















1














use pip --- for python2
pip3 -- for python3
recommencement to use sudo



pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl 





share|improve this answer



















  • 1





    Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

    – Abhi
    Apr 6 at 16:51
















1












1








1







use pip --- for python2
pip3 -- for python3
recommencement to use sudo



pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl 





share|improve this answer













use pip --- for python2
pip3 -- for python3
recommencement to use sudo



pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-1.10.0-cp35-cp35m-linux_x86_64.whl 






share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 4 at 5:23









AbhiAbhi

111




111








  • 1





    Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

    – Abhi
    Apr 6 at 16:51
















  • 1





    Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

    – Abhi
    Apr 6 at 16:51










1




1





Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

– Abhi
Apr 6 at 16:51







Tf could be installed in python 2 or 3, just look up at (tensorflow.org/install/source)

– Abhi
Apr 6 at 16:51




















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f768372%2finstall-tensorflow-with-python3-on-ubuntu-16-04%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?