简体   繁体   English

Python:“没有启用virtualenv”

[英]Python: “No virtualenv active”

I installed PyCharm 2.7 under Windows 8.1. 我在Windows 8.1下安装了PyCharm 2.7。 It works fine, but every time I run a program, I get the following warning: 它工作正常,但是每次运行程序时,都会收到以下警告:

WARNING:root:No virtualenv active 警告:root:没有激活的virtualenv

Why does it happen and how can I fix it? 为什么会发生,如何解决?

Program you run needs a virtual environment to run. 您运行的程序需要虚拟环境才能运行。 This is a nice python feature that allows you to isolate a python program within the scope of the specific python set of libraries it may need. 这是一个很好的python功能,可让您在可能需要的特定python库集合范围内隔离python程序。 If you do not run more than one Python program you may not be really worried about it. 如果您不运行多个Python程序,则可能不会真正担心它。 However, it you do, I would recommend to ready about virtualenv first. 但是,您可以,我建议您先准备一下virtualenv。

ps. ps。 Also, it might be just a debug log for developers to make sure they switched virtual env. 同样,对于开发人员来说,它可能只是调试日志,以确保他们切换了虚拟环境。

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

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