Activate virtualenv in Fish shell

You are here:
< Back

How to activate virtualenv in Fish


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:

$ source your_env_name/bin/activate

This fails in Fish shell:

source: Error while reading file “your_env_name/bin/activate”


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:

$ source your_env_name/bin/

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.
Was this article helpful?
How can we improve this article?
Need help?