Thank you for the instructions, it worked for me. Replace “D:\Python3.6.5” with your installation directory.ĭ:\Python3.6.5> ren python36._pth python36._pth.saveĪnd set the PYTHONPATH environment variable for the current user. To set the sys.path variable open the _pth file an add the following pathes at the and of the file. sys.path contains all directories where python looks for modules. Root cause is that the embeddable zip file installation package contains a file python36._pth which overwrites all other possibilities to set the sys.path variable. ModuleNotFoundError: No module named 'pip'Īny try to expand the variable by setting a PYTHONPATH variable are ignored. Because the sys.path variable just contains Python Zip file and the path to the python directory where the python executable is located. Unfortunately in the default configuration you can not load any module installed by pip, pip itself too. If you are behind a proxy add the –proxy switchĭ:\Python3.6.5> python get-pip.py -proxy="" Installing collected packages: pip, setuptools, wheel To install pip download the latest version of get-pip to the pythons install path and start installation. In this example Python 3.6.5.Įxtract the zip file to an directory, e.g. To install Python on Windows download the latest version.