4

I would like to install Python 3.5 in my new 18.04 Ubuntu release. I don't want it to be my default version. I just need it to run a specific app. Can anyone help?

  • 2
    Why? Python 3.6 should already be installed. Why the need for 3.5? – Rinzwind Jun 08 '18 at 13:37
  • @Rinzwind As i mentioned, for a specific app. When compiling it, it says it needs Python 3.5 in order to work – Aleksandar Kostovic Jun 08 '18 at 13:43
  • 3
    Is there anyone that codes for 3.5 specifically? Generally I would assume that means 3.5 or higher. But you do need to start that app with "python3" Not "python" (since python 2 is the default at the moment). – Rinzwind Jun 08 '18 at 14:04
  • To be exact on 18.04, python is python 2.7.15rc1 and python3 is 3.6.5 (as of today), on 17.10 however you will get a different result because there pythonis linking to python 3.6.x (not exactly know the version here) and python2 is linking to 2.7.x. guess they changed it yround again for compatibility reasons. – Videonauth Jun 08 '18 at 14:33
  • ^- not sure whether it properly solves the problem (see Rinzwind’s comment), but it does answer the question. – dessert Jun 08 '18 at 14:43
  • 1
    @Videonauth: That change was likely due to PEP 394. – David Foerster Jun 09 '18 at 23:35
  • @DavidFoerster Thanks that's interesting Information. – Videonauth Jun 09 '18 at 23:48
  • Older python packages are very useful for application developers who want to test compatibility of their application. If someone wants to use a specific version they probably have a reason. The reason is not the point here! We all know newer versions are better (usually). – saeedgnu Aug 30 '18 at 08:55

1 Answers1

4

I'ld be more inclined to set up a docker container, but the deadsnakes ppa does carry various python builds you could install to get exactly the version you need.

For bionic, they do have a few builds.

RobotHumans
  • 29,530