如何为特定的python版本安装pycrypto模块

如何为特定的python版本安装pycrypto模块,python,ubuntu,pycrypto,Python,Ubuntu,Pycrypto,我试图在Ubuntu 13.04 X64中安装“Userful MultiSeat-X64-5.0.1…”,在安装结束时遇到以下错误: File "<string>", line 6, in <module> ImportError: No module named Crypto.Cipher 但问题是userful5需要Python2.6才能工作,而Ubuntu13.04使用Python2.7作为默认值。我已经安装了Python2.6,但是我不知道如何为它安装pycr

我试图在Ubuntu 13.04 X64中安装“Userful MultiSeat-X64-5.0.1…”,在安装结束时遇到以下错误:

File "<string>", line 6, in <module>
ImportError: No module named Crypto.Cipher
但问题是userful5需要Python2.6才能工作,而Ubuntu13.04使用Python2.7作为默认值。我已经安装了Python2.6,但是我不知道如何为它安装pycrypto模块

pip install pycrypto
返回:

Requirement already satisfied (use --upgrade to upgrade): pycrypto in /usr/lib/python2.7/dist-packages
据我所知,这个模块已经安装在Python2.7中
但是如何将其安装到python2.6上呢?

您应该使用pip来安装python2.6(或轻松安装)

使用easy_安装获得pip-2.6

easy_install-2.6 pip
pip-2.6 install pycrypto

“easy_install-2.6 pip”的可能重复返回:“没有找到命令'easy_install-2.6',您的意思是:命令'easy_install-2.7',来自包'python setuptools'(main)easy_install-2.6:command not found”从这里下载了python2.6的setuptools,并且成功了。
pip-2.6 install pycrypto
easy_install-2.6 pip
pip-2.6 install pycrypto