2024-06-23 02:43:45 发布
网友
我已经安装了venv使用python3与鱼一样和激活使用env/bin/激活.fish,但没有停用.fish在env/bin/
➜ ls env/bin/ activate activate.fish easy_install pip pip3.7 python3 activate.csh chardetect easy_install-3.7 pip3 python yapf
如何停用venv?在
与activate相反,deactivate是作为shell函数实现的,而不是作为env/bin中的shell脚本或二进制文件。可以通过运行以下命令来验证:
activate
deactivate
env/bin
type -t deactivate function
要运行函数并停用virtualenv,只需运行deactivate
PS:这种行为对于所有shell都是相同的,它不是fish的特殊情况。在
fish
与
activate
相反,deactivate
是作为shell函数实现的,而不是作为env/bin
中的shell脚本或二进制文件。可以通过运行以下命令来验证:要运行函数并停用virtualenv,只需运行
deactivate
PS:这种行为对于所有shell都是相同的,它不是
fish
的特殊情况。在相关问题 更多 >
编程相关推荐