Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

screwed up trying to make my system auto run python 3 instead of python 2.x

I screwed up.
When some members suggested I use python 3 instead of 2.x I went ahead and tried to reverse the terminal commands I had used to switch from the default 3.x on my Manjaro system to 2.x.

Here are the commands I used to switch from Python 3 to PYthon 2.7:

Code
cd /usr/bin
ls -l python
    lrwxrwxrwx 1 root root 7  5 sept. 07:04 python -> python3
ln -sf python2 python
ls -l python
    lrwxrwxrwx 1 root root 7 Dec 11 19:28 python -> python2

Then a little bit ago I decided that reverseing the commands would switch it back (Dont give me a hard time about doing commands Im not sure
what they do, I am already giving myself a hard time about it). Heres the commands I did:

Code
ls -l python2
sudo ln -sf python python2
ls-l python2

And now when I try to run Python I get the following error:
Code
$ python
bash: python: command not found
😧

How do I fix this?
sudo apt-get remove python

sudo apt-get install python
[Image: V9Gredc.png]
Ok I was trying to avoid that (not sure why) just thought there may be another way.

And btw its sudo pacman;) (I'm using Manjaro) Just screwin' with ya. Thanks a bunch.
I'm not completely sure as I haven't tested, this will either fix your problem, or screw your python, so would be better if you checked it first:
Code
ln -sf python3 python
python it self is just like a place holder, your previous command "ln -sf python2 python" makes it point to python2, so instead of that, switch 2 to 3 and it should make it point to python3.
Use at your own risk, don't blame me if python is screwed XD
Have a cool signature? hit me up and I might use it.
I already went ahead and just removed and reinstalled but I get what your saying and dont see why it wouldnt work


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Help] by severosJun 19, 2015 11:51 PM 2 104 Jun 19, 2015 11:51 PM
Last Post: severos
by ZeakMay 29, 2009 11:03 PM 2 139 May 29, 2009 11:03 PM
Last Post: Zeak