的谷歌應用程序引擎啓動器告訴我:如何在Windows上安裝Python ssl模塊?
WARNING appengine_rpc.py:399 ssl module not found. Without the ssl module, the identity of the remote host cannot be verified, and connections may NOT be secure. To fix this, please install the ssl module from http://pypi.python.org/pypi/ssl .
我下載的軟件包,它包含一個setup.py
文件。我跑:
python setup.py install
然後:
Python was built with Visual Studio 2003; blablabla use MinGW32
然後我安裝MINGW32現在的編譯不起作用。編譯錯誤的結尾包含:
ssl/_ssl2.c:1561: error: `CRYPTO_LOCK' undeclared (first use in this function)
error: command 'gcc' failed with exit status 1
我該怎麼辦?
我在win7x64下安裝python,並且提示沒有ssl,安裝setuptools然後pip,最後:pip安裝pyOpenSSL。 – BollMose 2014-11-04 08:11:58
@ DienBell的評論是爲我解決的(乾淨安裝Windows 8.1,無需編譯環境) – WoJ 2015-03-11 14:10:57