热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何在linuxmint下在zsh中设置virtualenvwrapper?-Howtosetupvirtualenvwrapperinzshunderlinuxmint?

Iusevirtualenvwrapperfromapt.ItsworkingOKwithbashbutIrecentlyswitchedtozsh.Nowwhen

I use virtualenvwrapper from apt. It's working OK with bash but I recently switched to zsh. Now when I try workon in zsh I get zsh: command not found: workon Because I'm using oh-my-zsh script/plugins I thought it will be sufficient to add virtualenv and virtualenvwrapper plugins to my .zshrc plugins=. But it did not help. What else I need to configure to make it work under zsh?

我使用apt的virtualenvwrapper .它在bash中运行得很好,但是我最近换了zsh。现在,当我在zsh尝试工作时,我得到zsh:没有找到的命令:workon,因为我使用的是oh-my-zsh脚本/插件,我认为它足以将virtualenv和virtualenvwrapper插件添加到我的.zshrc插件=。但这并没有帮助。我还需要配置什么来让它在zsh下工作?

PS to be clear - I still can use bash for this - nothing broken here...

PS明确一点——我仍然可以使用bash来解决这个问题——这里没有损坏……

1 个解决方案

#1


33  

I just test it on ubuntu 14.04 and i had the same problem. To fix it add this to your .zshrc

我刚在ubuntu 14.04上测试过,我也遇到了同样的问题。要修复它,请将其添加到.zshrc中

 source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

or run this in terminal

或者在终端上运行

 echo source /usr/share/virtualenvwrapper/virtualenvwrapper.sh >> ~/.zshrc

推荐阅读
author-avatar
用户rmgq8prdxo
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有