简体   繁体   English

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

[英]How to install the pycrypto module for a definite python version

I'm trying to install "Userful MultiSeat-X64-5.0.1 ..." in Ubuntu 13.04 x64, and encountered the following error at the end of the installation: 我试图在Ubuntu 13.04 x64中安装“ Userful MultiSeat-X64-5.0.1 ...”,在安装结束时遇到以下错误:

File "<string>", line 6, in <module>
ImportError: No module named Crypto.Cipher

This message means, that there is no pycrypto module. 此消息表示没有pycrypto模块。

There is how I should install it: 我应该如何安装它:

pip install pycrypto

But the problem is that userful5 requires python 2.6 to work and ubuntu 13.04 uses python 2.7 as default. 但是问题是userful5需要python 2.6才能工作,而ubuntu 13.04使用python 2.7作为默认值。 I've installed python 2.6, but I don't know how to install the pycrypto module for it. 我已经安装了python 2.6,但是我不知道如何为它安装pycrypto模块。

pip install pycrypto

returns: 返回:

Requirement already satisfied (use --upgrade to upgrade): pycrypto in /usr/lib/python2.7/dist-packages

As I understand, this module is already installed in python 2.7 But how can I install it to python 2.6? 据我了解,此模块已安装在python 2.7中,但是如何将其安装到python 2.6?

You should use pip for python2.6 (or easy_install) 您应该将pip用于python2.6(或easy_install)

pip-2.6 install pycrypto

Use easy_install to get pip-2.6 使用easy_install获得pip-2.6

easy_install-2.6 pip
pip-2.6 install pycrypto

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM