Activate virtualenv in Fish shell
How to activate virtualenv in Fish
Problem
If you used to be a bash shell user and then decided to move to fish, you will probably face a problem with activating your python virtual environment.
The typical method to activate a virtualenv is:
1
|
$ source your_env_name/bin/activate |
This fails in Fish shell:
1
|
source: Error while reading file “your_env_name/bin/activate” |
Solution
The solution for this problem was much a lot easier than googling it. Thankfully, virtualenv ships with an activation script for specifically for Fish. Use that instead:
1
|
$ source your_env_name/bin/activate.fish |
Did not find what you were looking for? Open a ticket with our Help Centre and we will get back to you resolve your issue.Click Here.