Hello when I try to update php I deleted /usr/bin/python3 by mistake
i run this command :
cd /usr/bin
rm python3
ln -s python3.5 python3
then most of apps don't work
notice : i am use parrot os
CodePudding user response:
Well, you deleted the python3 folder, so I suppose you have to install Python again?
Parrot OS uses the APT package manager, so you can simply do the following in the terminal:
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:deadsnakes/ppa
$ sudo apt-get update
$ sudo apt-get install python3.5
Then you can run ln
again, but of course don't remove the python folder.
If you just want the latest Python version:
$ sudo apt update
$ sudo apt install python3
CodePudding user response:
Try to use command like this:
ln -s /root/py36/bin/python3 /usr/bin/python3
In my impression, recommend using the absolute path to represent source and target path.
If you want use relative path, try this:
ln -s ./python3.5 ./python3