22

有什么办法可以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'
4

1 回答 1

16

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

这将为您提供一个包含您习惯的所有命令的.fish包装器。virtualenvvirtualenvwrapper

于 2014-12-12T18:15:53.970 回答