How to install Python ssl module on Windows?

前端 未结 5 1353
一个人的身影
一个人的身影 2020-12-07 23:26

The Google App Engine Launcher tells me:

WARNING appengine_rpc.py:399 ssl module not found. Without the ssl module, the identity of the remote host canno

5条回答
  •  执笔经年
    2020-12-07 23:45

    I used AndiDog's and Saxon Druce answers which are 100% correct but might need some clarification for inexperienced users like me:

    1. This is for Windows users only.

    2. Install python 2.5.2 32 bit - it was essential for me as i have x64 system and I first installed python 2.5.2 x64 and the proposed solution did not work for me at all, so 32 bit it is.

    3. Install GCC - http://sourceforge.net/projects/tdm-gcc/files/TDM-GCC%20Installer/Previous/1.1006.0/tdm-gcc-4.5.2.exe/download, I used the latest version, do not forget to select the option add to PATH variable while installing, or you will have to add the path to the GCC bin folder to your environment variable "path" yourself.

    4. Blockquote openssl and libgw32c packages from the gnuwin32 project (download the "Developer files"!) and extract them where you installed gnuwin32 - or if you don't have gnuwin32 tools yet, you can extract it anywhere (e.g. "C:\Program Files\gnuwin32"). Enter the gnuwin32 directory in the "setup.py" of the ssl library file (replace "C:\Utils\GnuWin32" in line 154).

    5. run python setup.py build -cmingw32 (the easiest way is to fire cmd and navigate to the directory where ssl library was extracted to) - this will compile ssl library

    6. run python setup.py install --skip-build to install it

    That should do it.

    I am actually surprised that they did not manage to add ssl library to app engine sdk or python installer in all this years, may be people do not use it.

提交回复
热议问题