Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup virtualenvwrapper in zsh under linux mint?

I use virtualenvwrapper from apt. It's working OK with bash but I recently switched to zsh. Now when I try workon in zsh I get zsh: command not found: workon Because I'm using oh-my-zsh script/plugins I thought it will be sufficient to add virtualenv and virtualenvwrapper plugins to my .zshrc plugins=. But it did not help. What else I need to configure to make it work under zsh?

PS to be clear - I still can use bash for this - nothing broken here...

like image 229
Lord_JABA Avatar asked Jun 17 '14 13:06

Lord_JABA


People also ask

Where is my virtualenvwrapper?

Location of Environments The variable WORKON_HOME tells virtualenvwrapper where to place your virtual environments. The default is $HOME/. virtualenvs . If the directory does not exist when virtualenvwrapper is loaded, it will be created automatically.

How do I use virtualenvwrapper and virtualenv?

This is really simple. Start by changing directory into the root of our project directory, and then use the virtualenv command-line tool to create a new environment: $ mkdir myproject $ cd myproject $ virtualenv env New python executable in env/bin/python Installing setuptools, pip, wheel... done.

What is virtualenvwrapper win?

This is a port of Doug Hellmann's virtualenvwrapper to Windows batch scripts. The idea behind virtualenvwrapper is to ease usage of Ian Bicking's virtualenv, a tool for creating isolated Python virtual environments, each with their own libraries and site-packages.


1 Answers

I just test it on ubuntu 14.04 and i had the same problem. To fix it add this to your .zshrc

 source /usr/share/virtualenvwrapper/virtualenvwrapper.sh

or run this in terminal

 echo source /usr/share/virtualenvwrapper/virtualenvwrapper.sh >> ~/.zshrc
like image 98
buluba89 Avatar answered Oct 01 '22 04:10

buluba89