Problems I've encountered and their solutions (Python)



General

  • To "clean up" your system's default version of Python by removing all of the modules you've installed: (Source)
    1. pip freeze > requirements.txt
    2. pip uninstall -r requirements.txt -y



Python 2.7-specific

  • pip install errors
    • Unable to find vcvarsall.bat
      • Background:
        • I was trying to get the Windows Cognitive Services example for their Face API working, which required Python 2.7 and the wx package. I couldn't get the wx package to install because it would give me that error message.
      • Solution: http://stackoverflow.com/a/5983696/4115031
        • I just downloaded the .whl file, moved it to the root directory of the project, ran 'pip install whl_file_name.whl', and it worked!