You are not logged in.

#1 2021-03-24 06:18:41

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

[solved] accidentially messed up my python path

A while back, I installed python3.8 from the AUR for a reason I can't even remember. I uninstalled the package, but now, I can not execute any python commands without explicitly stating python3.9.

For instance

pip install <package> 

yields this error:

/usr/bin/python3.8: bad interpreter: No such file or directory

I must instead use

 python3.9 -m pip install <package>

What is still lingering in the system that makes 'python' look for a binary in the 3.8 directory? And how do I fix this?

Last edited by shoelesshunter (2021-03-24 12:29:00)

Offline

#2 2021-03-24 07:01:56

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [solved] accidentially messed up my python path

what does

ls -la /usr/bin/python

return?

Offline

#3 2021-03-24 08:52:38

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] accidentially messed up my python path

ponyrider wrote:

what does

ls -la /usr/bin/python

return?

lrwxrwxrwx 1 root root 7 Feb 20 12:40 /usr/bin/python -> python3

Offline

#4 2021-03-24 12:28:45

shoelesshunter
Member
From: USA
Registered: 2014-05-18
Posts: 289

Re: [solved] accidentially messed up my python path

Never-mind. It seems the old way of 'pip install' was just messing up.

I can do 'python -m pip install' without specifying python version. I use beets music manager and it found all necessary plugins just fine.

Offline

#5 2021-03-24 15:11:33

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [solved] accidentially messed up my python path

shoelesshunter wrote:

Never-mind. It seems the old way of 'pip install' was just messing up.

I can do 'python -m pip install' without specifying python version. I use beets music manager and it found all necessary plugins just fine.

That is because of pip, not python.

What is the output of

type -a pip

and can you guess why it is wrong?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB