Python installation issues

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
MG1234
Posts: 1
Joined: 2021-07-27 08:44

Python installation issues

#1 Post by MG1234 »

Hi
I have debian ( Debian 4.9.210-1 ). This is hosted on AWS EC2. This came with default Python2.7 version.
I installed Python 3.7.0a1 on this server. Now I'm trying to uninstall Python 3.7.0a1, but I'm getting the below error:
Error -
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package Python-3.7.0a1
E: Couldn’t find any package by glob ‘Python-3.7.0a1’
E: Couldn’t find any package by regex ‘Python-3.7.0a1’

But when i query for python3 --version
I get Python-3.7.0a1

Can someone please help how to uninstall various version of Python and pip installed on this debian server.

arzgi
Posts: 850
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 6 times

Re: Python installation issues

#2 Post by arzgi »

MG1234 wrote: 2021-07-27 08:56 Hi
I have debian ( Debian 4.9.210-1 )
Really? I hope it is a typo.

User avatar
stevepusser
Posts: 12430
Joined: 2009-10-06 05:53
Has thanked: 8 times
Been thanked: 6 times

Re: Python installation issues

#3 Post by stevepusser »

How to uninstall?

Obviously, since that Python is not in the Debian repos, it would help if you told us in detail how you installed it in the first place!!!
MX Linux packager and developer

trinidad
Posts: 209
Joined: 2016-08-04 14:58
Been thanked: 4 times

Re: Python installation issues

#4 Post by trinidad »

That's an old alpha version of python 3 and the kernel looks to be built for Jessie. Check your sources list. Also read below:

https://docs.python.org/3.7/installing/index.html

TC
You can't believe your eyes if your imagination is out of focus.

Post Reply