Setting up Python virtualenv

From HPCwiki
Revision as of 22:27, 24 November 2013 by Hjmegens (talk | contribs)
Jump to navigation Jump to search
virtualenv newenv
source newenv/bin/activate

 (newenv)hjm@ubuntu:~$

Make IPython work under virtualenv

source testenv/bin/activate

   File "/usr/bin/ipython", line 11
   print "Could not start qtconsole. Please install ipython-qtconsole"
                                                                     ^

This can be resolved by adding a soft link with the name ipython to the bin directory in the virtual environment folder.

ln -s /path/to/virtenv/bin/ipython3 /path/to/virtenv/bin/ipython