Virtualenv in Fish Shell
Contents
While working with python, you always need to use virtual environments.
And for the folks like me, who uses fish shell instead of other shell. Activating the virtualenv might be a little tricky.
The following method does not work in fish but it works in other shells like Bourne Shell, zsh.
|
|
If you cd into the virtualenv directory and ls you can see as:
|
|
See there?
There is a file named activate.fish
.
Thanks to latest virtualenv for including the file for different shells.
$ source /Path/to/venv/bin/activate.fish
And that’s it. That’s the magic.
Author aasutossh
LastMod 2020-04-13 (701ae73)