0

I am facing a weird problem. If I have just installed python 2.7.6 in addition to already present python 2.7.3.

But this is giving me some weird issues. Such as even though my system has pyqt4, python is complaining I don't have pyqt. When I am trying to run the following command in terminal, it is saying:

 sudo apt-get install python-qt4

The module is already present. When I am typing the following command:

$which python
/usr/local/bin/python

Which is python 2.7.6. I am really struggling now. Kindly help.

1 Answers1

1

I would not recommend to have two 2.7.x versions installed. If you need for some project a specific additional version, use virtual environments instead.

If you need to get rid of one python system wide version, stick to this recommendations.

To change between different installations of python, use

sudo update-alternatives --config python

to configure them. However, that would most likely trigger problems with future updates.

Marcus
  • 431