Dim*_*ima 5 python fish python-3.x python-venv
我已经使用 python3 安装了 venv 和 fish like 并使用 env/bin/activate.fish 激活,但是在 env/bin/ 中没有deactivate.fish
? ls env/bin/
activate activate.fish easy_install pip pip3.7 python3
activate.csh chardetect easy_install-3.7 pip3 python yapf
Run Code Online (Sandbox Code Playgroud)
我怎样才能停用venv?
In opposite to activate, deactivate is implemented as a shell function, not as a shell script or binary in env/bin. You can verify that by running:
type -t deactivate
function
Run Code Online (Sandbox Code Playgroud)
To run the function and deactivate the virtualenv, just run deactivate
PS: This behaviour is the same for all shells, it is not special to fish.