How to enable OpenSSL support in an alternate install of Python 2.5.1? -
some background info:
i'm trying run server program in python 2.5.1 (the version server written , tested on). program needs openssl library of functions. installed python 2.5.1 source yum repository amazon linux instance i'm running on not have version of python need.
when try run server python 2.5.1 following import error:
traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named openssl i know openssl libraries installed can import them python 2.6 (the version of python installed yum). it's python 2.5.1 installation can't see them.
i have installed pyopenssl via yum no luck.
installed python libraries specific particular version. pyopenssl installed yum system python. need install separate instance of pyopenssl alt-installed 2.5 python.
if use python2.5 install distutils you'll find have easy_install-2.5 can use: easy_install-2.5 pyopenssl (or similar). note may install new version of easy_install, overwriting existing 1 system python (if have one). use distutils existing package use easy_install-2.7 (if it's python 2.7).
does make sense? basically, each python distinct , needs own set of libraries. in contrast, easy_install installed globally, there version-specific copy of easy_install each python...!
if want avoid mess easy_install, can use virtualenv. create new environment 2.5, enable that, , can install pyopenssl in there (using easy_install environment). may sound more complicated if you've never ysed virtualenv, if give little time understand work out better in long-term.
Comments
Post a Comment