Installing SSL Module for Python (2.5.4) on Windows
since AppEngine requires to upload your apps via SSL I tried to install the module on my working laptop.
It is a x64 Win 7 System with Python 2.5.4 x86 installed.
I followed guides such as this one: How to install Python ssl module on Windows? and also all related links.
But the major problem is, that neither MinGw nor GnuWin seems to really work.
GnuWin is perfectly installed, up to date and has all dependencies it needs to build the SSL module.
But typing in
> "C:\Python25\python.py" setup.py install -c mingw32
just badly fails. So does "-cmingw32" and "-gnuwin32". (-cmingw32 obviously fails, because even though MinGW is fully installed MinGw is not regcognized)
"build" instead of install seems to "output" something: MinGw complains about "ggc no such file or directory", and with GnuWin "it doesn't know how to compile C/C++ on a nt with gn开发者_开发问答uwin"
This sounds like total garbage to me, because I did everything as described in the tutorials.
I fixed one part of my problem: gcc is now getting recognized by easy_install but AE still complains about the missing SSL module though both, easy_install and python say Pycrypto incl. SSL is successfully installed
easy_install ssl
C:\Users\faits>easy_install ssl
Searching for ssl
Best match: ssl 1.15
Adding ssl 1.15 to easy-install.pth file
Using c:\python25\lib\site-packages
Processing dependencies for ssl
Finished processing dependencies for ssl
easy_install pycrypto
C:\Users\faits>easy_install ssl
Searching for ssl
Best match: ssl 1.15
Adding ssl 1.15 to easy-install.pth file
Using c:\python25\lib\site-packages
Processing dependencies for ssl
Finished processing dependencies for ssl
python
IDLE 1.2.4
>>> import ssl
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ssl
File "C:\Python25\lib\site-packages\ssl\__init__.py", line 61, in <module>
import _ssl2 # if we can't import it, let the error propagate
ImportError: No module named _ssl2
python
>>> import pycrypto
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import pycrypto
ImportError: No module named pycrypto
I've summed up all the instructions nicely on the following link. Do check it out. http://waqasshabbir.tumblr.com/post/18010535789/ssl-module-for-python-2-5-installation-windows-only
Use -c
with the build
command.
Compare:
$ python setup.py install -c
--compile (-c) compile .py to .pyc [default]
with:
$ python setup.py build -c
--compiler (-c) specify the compiler type
To find out other options , run:
$ python setup.py build --help
精彩评论