4

I run Linux Mint with Python 3.4.x pre-installed. I'm starting a new project and wanted to take advantage of 3.5ish stuff so I decided I would install 3.5 and create my new virtual environment pointing to it.

So, I by accident typed

sudo apt-get install python 3.5

Which I've since learned is different from

sudo apt-get install python3.5.

I know that is different because the later requires adding a new repository wherein the former I was able to do before I added the deadsnakes repo.

So, I went through the install of "python 3.5" - it asked me some questions about FTP to ined(something) or standalone, then I installed python3.5.

My question(s) is

1) What is python 3.5? (with the space), 2) Did I break anything, 3) Should I uninstall python 3.5 even though the uninstall warns me not to unless I really know what I am doing?

Thank you

SteveJ
  • 3,034
  • 2
  • 27
  • 47
  • 3
    3.6 came out today. Why not just forget about "python 3.5" vs "python3.5" and install 3.6? – TigerhawkT3 Dec 24 '16 at 05:42
  • @TigerhawkT3 *"Python3.6 is worthy of being called Python3"* -- Raymond Hettinger – Mohammad Yusuf Dec 24 '16 at 05:47
  • @TigerhawkT3; Thank you, that is good advice and I will do that. However, the question still remains as to what I accidentally installed and weather I broke anything. – SteveJ Dec 24 '16 at 05:48
  • using `sudo apt-get install python 3.5` you probably install Python 2 but you should have it already (I use Linux Mint 17 and I have installed Python 2.7, 3.4, 3.5, and even 2.4) – furas Dec 24 '16 at 05:50
  • BTW: there was [unofficial repo with precompiled Python 2.3-3.5 for Ubuntu and Mint](https://launchpad.net/%7Efkrull/+archive/ubuntu/deadsnakes/+index?batch=75&memo=75&start=75) but it seems author has no time to compile new versions. – furas Dec 24 '16 at 05:55
  • 1
    On Mint 17 you shouldn't uninstall Python 2 because system uses it. I don't know what with the newest MInt - because it based on Ubuntu and the newest Ubuntu uses 3.5 in system and doesn't need 2.x – furas Dec 24 '16 at 05:59
  • @TigerhawkT3; Now that I look at it, I guess the reason that I don't install 3.6 is that I don't see a repo for 3.6 that lets me use apt-get, and I'm chicken to try to install from source. – SteveJ Dec 24 '16 at 06:14
  • this should be on [askubuntu](https://askubuntu.com/), don't you think? – hiro protagonist Dec 24 '16 at 09:31

2 Answers2

3

Newer versions always have newer patches and fixes. Python 3.5.2 is probably what you installed if you used sudo apt-get install python3.5. There is also Python 3.6 now.

With the space (sudo apt-get install python 3.5) it would mean install python and 3.5 so maybe it just installed/updated python2.

Anyway, having multiple versions is not an issue. You may alias each install and use them as required.

Should I uninstall python 3.5 even though the uninstall warns me not to unless I really know what I am doing?

You shall do that if no other program/dependency is lost. Have you used it in some code? (which wouldn't work if its gone!) If you haven't then go ahead uninstall it.

Ani Menon
  • 27,209
  • 16
  • 105
  • 126
0

It's not good. I had the same installing Ruby and accidentally typing:

Don't do this!!

apt install ruby 2.4

It installed the latest Ruby and many gigabytes of packages with 2.4 in the name.

I tried to remove them with

apt remove 2.4

...but it turns out some of these packages are essential for the Operating System.

To list the packages with label 2.4:

apt-cache show 2.4

So uninstalling non-essential packages could be an option if you manage to list them and use that output as arguments for apt remove. But I suppose even then your system may potentially be left unstable.

Luckily I ran the command on a relatively fresh Raspbian install so I'll just do a clean install. Apt install is a surprisingly dangerous command, :D, good luck

K. Clawz
  • 1
  • 3