如何让virtualenvwrapper在鱼壳中工作?

时间:2014-03-18 20:04:28

标签: shell virtualenv virtualenvwrapper fish

有没有办法让virtualenvwrapper在鱼壳中工作? 尝试运行virtualenvwrapper命令(例如workon)时,出现以下错误:

fish: Unknown command 'workon'

当我跑步时

source /usr/local/bin/virtualenvwrapper.sh

我从以下开始遇到很长的错误:

fish: Expected a command name, got token of type 'Run job in background'. Did you mean 'COMMAND; and COMMAND'? See the help section for the 'and' builtin command by typing 'help and'.

/usr/local/bin/virtualenvwrapper.sh (line 67): if [ "$OS" = "Windows_NT" ] && [ "$MSYSTEM" = "MINGW32" ]

以:

结尾
source: Error while reading file '/usr/local/bin/virtualenvwrapper.sh'

1 个答案:

答案 0 :(得分:13)

有很多选择,但我发现的最佳方法是https://github.com/adambrenecki/virtualfish

这将为您提供.fish virtualenv包装器,其中包含您习惯的所有virtualenvwrapper命令。