简体   繁体   English

为什么virtualenvwrapper无法在翼ide pro终端中运行?

[英]Why is virtualenvwrapper not working inside wing ide pro terminal?

Why is virtualenvwrapper commands like workon not working inside wing ide pro terminal? 为什么像workon这样的virtualenvwrapper命令在wing ide pro终端中无法正常工作?

bash: workon: command not found

Any other bash terminal outside wing ide pro is working. wing ide pro之外的任何其他bash终端都可以使用。

My guess is there is some difference in the PATH in Wing for some reason. 我的猜测是由于某些原因Wing中的PATH有所不同。 If on OS X this may be solved by starting Wing from the command line so it inherits the right environment. 如果在OS X上,可以通过从命令行启动Wing来解决,以便它继承正确的环境。 On other OSes I don't know why this env would differ. 在其他操作系统上,我不知道为什么这个环境会有所不同。

If you're trying to use specific virtualenv in Wing you'll instead want to set Python Executable in Project Properties in the Project menu in Wing Pro or Wing Personal to the virtualenv's Python executable. 如果您尝试在Wing中使用特定的virtualenv,则需要在Wing Pro或Wing Personal的“项目”菜单中的“项目属性”中将Python可执行文件设置为virtualenv的Python可执行文件。

Or start Wing from the commandline after running workon there. 或者在该命令行上运行后,从命令行启动Wing。

Running workon in the OS Commands tool in Wing is not going to change the environment Wing is already running in. It only changes the environment for that one bash instance and working with Python there is going to bypass most of the IDE's features. 在Wing的OS Commands工具中运行workon不会更改Wing已经在其中运行的环境。它只会更改该bash实例的环境,并且使用Python可以绕过大多数IDE的功能。

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

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