Search code examples
pythonenthoughtpymssql

How to configure the Python path in installing pymssql?


I have installed Python 2.7 with EPD of Academic License in Win7 64bit system. And I want to connect sql server database via python, so I try to install pymssql. However, it warned as follow. How should I fix this issue? Tks. enter image description here


Solution

  • I assume that EDP forgets to install the correct two variables needed for Python libraries to determain which python version is installed. Remember that EDP most likely packages Python in their own installer rather than using the Python default one?

    Check the following registry keys:

    • HKLM\SOFTWARE\Python\PythonCore\versionnumber\InstallPath
    • HKCU\SOFTWARE\Python\PythonCore\versionnumber\InstallPath