Code Yarns ‍👨‍💻
Tech Blog ❖ Personal Blog

How to activate virtualenv in Fish

📅 2016-Jan-13 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ activate, fish, virtualenv ⬩ 📚 Archive

Problem

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”

Solution

Thankfully, virtualenv ships with an activation script for Fish. Use that instead:

$ source your_env_name/bin/activate.fish

Tried with: Ubuntu 14.04


© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io • 📧