Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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: 1193
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 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: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 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: 296
Joined: 2016-08-04 14:58
Been thanked: 15 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