How Do I Update Pythonpath From /usr/local/bin/python To /usr/bin/python
I am unable to use virt-manager, and I think it's because of where my python is located. When I run the virt-manager command I get: No module named libvirt even though I have libv
Solution 1:
You can make a symbolic link, example:
sudo mv /usr/local/bin/python python-old # example name
sudo ln -s /usr/bin/python /usr/local/bin/python
Solution 2:
To be clear, the PYTHONPATH environmental variable sets where your python session looks for modules. It doesn't set the location of your python interpreter, which I think is what you want to do.
What you need to do is add and alias for the python interpreter that you do want to use to your bash_profile. Something like this:
alias python='/usr/bin/python'
Post a Comment for "How Do I Update Pythonpath From /usr/local/bin/python To /usr/bin/python"