You are not logged in.

#1 2021-10-30 15:45:20

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

Arch /usr/bin/env: ‘python’: No such file or directory

Hello!
I did this weird thing while messing around with arch , i installed python37 , and then uninstalled python3. Now the arch system i have on my VM doesn't work properly.

Here are the commands i ran:

~ took 5m 13s
 ➜ which python
python not found

~
 ➜ which python3
python3 not found

~
 ➜ which python2
python2 not found
~
 ➜ sudo pacman -Q | grep python
[sudo] password for ryan:
dbus-python 1.2.18-1
libvirt-python 1:7.8.0-1
python-appdirs 1.4.4-3
python-cachecontrol 0.12.6-3
python-cairo 1.20.1-1
python-cffi 1.14.6-2
python-chardet 4.0.0-2
python-colorama 0.4.4-3
python-contextlib2 0.6.0.post1-3
python-cryptography 35.0.0-1
python-distlib 0.3.3-1
python-distro 1.6.0-1
python-dnspython 1:2.1.0-1
python-filelock 3.0.12-5
python-gobject 3.40.1-2
python-html5lib 1.1-6
python-idna 3.2-1
python-importlib-metadata 4.8.1-1
python-markdown 3.3.4-1
python-more-itertools 8.10.0-1
python-msgpack 1.0.2-2
python-ordered-set 4.0.2-3
python-packaging 20.9-2
python-pep517 0.11.0-1
python-pip 20.3.4-1
python-platformdirs 2.0.2-1
python-ply 3.11-7
python-progress 1.6-1
python-pycparser 2.20-3
python-pyopenssl 20.0.1-1
python-pyparsing 2.4.7-3
python-requests 2.26.0-1
python-resolvelib 0.5.5-1
python-retrying 1.3.3-9
python-setuptools 1:57.4.0-2
python-six 1.16.0-1
python-toml 0.10.2-3
python-tomli 1.2.1-1
python-urllib3 1.26.7-1
python-virtualenv 20.8.0-1
python-webencodings 0.5.1-6
python-zipp 3.6.0-1
python2 2.7.18-5
python37 3.7.12-2

Any help ? I also can't uninstall/install/update any application.

Last edited by PhantomRex123 (2021-10-30 15:46:39)

Offline

#2 2021-10-30 16:02:25

Ammako
Member
Registered: 2021-07-16
Posts: 267

Re: Arch /usr/bin/env: ‘python’: No such file or directory

What is "doesn't work properly"?

Offline

#3 2021-10-30 16:29:32

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

Re: Arch /usr/bin/env: ‘python’: No such file or directory

Ammako wrote:

What is "doesn't work properly"?

i can't use python nor install/remove it

Offline

#4 2021-10-30 16:47:52

teckk
Member
Registered: 2013-02-21
Posts: 588

Re: Arch /usr/bin/env: ‘python’: No such file or directory

i installed python37

How, with pip? As root?  If so get what pip installed off, and install python with pacman. Or did you install something from the AUR?

and then uninstalled python3

How? What are you installing/uninstalling python with?

Offline

#5 2021-10-30 17:56:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,497
Website

Re: Arch /usr/bin/env: ‘python’: No such file or directory

The AUR package installs the binary as python3.7 and it needs to be called that way.

But none of this makes much sense at all, please describe exactly what you have done, and why.  Why did you remove the regular python package??  The whole idea of python37 in the AUR is to be able to be installed along-side the regular repo python package.

Last edited by Trilby (2021-10-30 17:58:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2021-10-31 03:31:27

PhantomRex123
Member
Registered: 2021-10-16
Posts: 6

Re: Arch /usr/bin/env: ‘python’: No such file or directory

Trilby wrote:

The AUR package installs the binary as python3.7 and it needs to be called that way.

But none of this makes much sense at all, please describe exactly what you have done, and why.  Why did you remove the regular python package??  The whole idea of python37 in the AUR is to be able to be installed along-side the regular repo python package.

I don't have a clue what i did! But i fixed it buy going into my snapshot , and then re-installing python . And now it works alongside python37. But i can't remove python37 now. I don't know why

Last edited by PhantomRex123 (2021-10-31 03:34:51)

Offline

#7 2021-10-31 06:40:47

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,243

Re: Arch /usr/bin/env: ‘python’: No such file or directory

But i can't remove python37 now. I don't know why

Neither do we. Is your keyboard broken? Did you forget the sudo password? Did Freddy Krueger chop off your arms?

Post the actual in- and output of your removal attempts and probably also

pacman -Qikkl python python2 python37 | curl -F 'f:1=<-' ix.io
cat /var/log/pacman.log | curl -F 'f:1=<-' ix.io

Offline

Board footer

Powered by FluxBB