有没有办法让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'
答案 0 :(得分:13)
有很多选择,但我发现的最佳方法是https://github.com/adambrenecki/virtualfish
这将为您提供.fish
virtualenv
包装器,其中包含您习惯的所有virtualenvwrapper
命令。