![]() ![]() Only a few of them technically answer the question's explicitly stated apt-get use-case, but the orthogonal answers are helpful to other readers (like me) as Docker-based answer pointed me in the right direction for my use-case and is greatly appreciated. Some great answers here with alternatives for almost every use-case (install from source, PPA's, pyenv, Docker, Conda). Note: you should probably be using a virtual environment like virtual env or conda/anaconda anyway unless your using docker anyway. This solution installs python 3.6 but I am sure if you look into it there you can get python 3.5 if thats what you want. For a docker example one can do: docker pull continuumio/anaconda3ĭocker run -i -t continuumio/anaconda3 /bin/bash Note: one can also just install Anaconda. It seems that was one of my problems because I was starting from a docker image from tensorflow (in particular gcr.io/tensorflow/tensorflow:latest-devel-p圓) and something in that image (I assume its that they already have python 3.4 but it might something else) didn't allow me to update my python to get python 3.5.Ĭredit: I discovered this when I asked the following: Important Note: it seems that if you already have python 3.4 installed then apt-get install python3 does not work because it says you already have it. Then for some reason it needed to update some ubuntu stuff so I did (inside the container): apt-get update & apt-get install -y build-essential git libjpeg-devĪnd then I simply installed python3 and it seems it automatically got python 3.5: apt-get install python3Īnd to test if pip works lets download something: pip3 install tensorflow
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |