V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
lixia625
V2EX  ›  Python

virtualenv 下 import Crypto 问题

  •  
  •   lixia625 · Aug 20, 2015 · 2620 views
    This topic created in 3902 days ago, the information mentioned may be changed or developed.
    首先,在非 venv 下 pip install pycrypto,之后在 python 中 import Crypto,成功;
    之后 . venv/bin/activate (which python 显示虚环境已成功激活),
    再 pip install pycrypto,之后在 python 中 import Crypto,报错
    ImportError: No module named Crypto
    会是什么原因呢?
    1 replies    2015-08-20 17:06:41 +08:00
    saber000
        1
    saber000  
       Aug 20, 2015
    PYTHONPATH 没设置对吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   827 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 20:50 · PVG 04:50 · LAX 13:50 · JFK 16:50
    ♥ Do have faith in what you're doing.