I have a problem with a multiple python install on a win7 system. I Have a Python2.6.4 and a Python3.1. each of them have a different PyQt4 version properly installed in their site-packages directories. to be more specific:
Python2.6.4 with PyQt4 4.7.3
Python3.1 with PyQt4 4.8.2
The problem is that I cant seem to import PyQt4 within any of these versions. This is clearly a problem of path conflict.
I removed any path from the path environment variable and tried to set them specifically for each python versions via :
- [.pth] files in each version site-packages folders
- adding manually the PyQt4 folder in the sys.path within my scripts before importing it but none worked
The only way I found that makes it work is to add PyQt4 folders in the system env path which is not convenient as I have to change it manually each time I switch of Python version.
What am I doing wrong ?