简体   繁体   English

无法在Ubuntu 12.04上的virtualenv中安装pycrypto

[英]Cannot install pycrypto inside virtualenv on ubuntu 12.04

I tried pip install pycrypto using the virtualenv pip. 我尝试使用virtualenv pip pip install pycrypto

When I'm using sudo the installation succeeds, but not inside the virtual environment which does not help me. 当我使用sudo ,安装成功,但是无法在虚拟环境中安装,这对我没有帮助。

The sudo apt-get install python-dev solution didn't help either. sudo apt-get install python-dev解决方案也没有帮助。 And also using easy_install and yum didn't help. 而且使用easy_installyum也无济于事。

This is the bottom line of the error i get when I'm trying to install: 这是我尝试安装时收到的错误的底线:

Command /home/ubuntu/conceep-env/bin/python -c "import setuptools,tokenize;__file__='/home/ubuntu/conceep-env/build/pycrypto/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/tmp/pip-NaKMgy-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/conceep-env/include/site/python2.7 failed with error code 1 in /home/ubuntu/conceep-env/build/pycrypto
Storing debug log for failure in /var/tmp/tmp3k2sTZ

只需使用sudo path/to/my/virtenv/bin/pip install pycrypto

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

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