简体   繁体   English

帮助解决Virtualenv中的DistributionNotFound错误

[英]Help with solving the DistributionNotFound error in Virtualenv

I've installed virtualenv on my system which the argument to not copy over any site packages. 我在我的系统上安装了virtualenv ,该参数不能复制到任何网站包。 Then I did an easy_install to install Django and that went fine too. 然后我做了一个easy_install来安装Django,这也很好。

In the virtual environ when i try and try django-admin.py , I get an error that I'm not being able to resolve. 在虚拟环境中,当我尝试尝试django-admin.py ,我收到一个我无法解决的错误。 Could someone help me out please? 有人可以帮帮我吗? Thanks a ton. 万分感谢。

(virt1) C:\virt_env\virt1>Scripts\django-admin.py

Traceback (most recent call last):
  File "C:\virt_env\virt1\Scripts\django-admin.py", line 4, in <module>
    import pkg_resources
  File "C:\Program_Files\Python27\lib\site-packages\pkg_resources.py", line 2607, in <module>
    parse_requirements(__requires__), Environment()
  File "C:\Program_Files\Python27\lib\site-packages\pkg_resources.py", line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: django==1.3

I don't think easy_install knows about virtualenv . 我不认为easy_install知道virtualenv Use pip instead. 请改用pip

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

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