python with virtual env on ubuntu


  • New CLEAN Ubuntu install
  • You have Priv password

Install Python3

apt-get install python3 pyvenv3-venv

Make a New Environment for yourself

pyvenv ~/pe35

Setup your alias

echo pe35=\"source ~/pe35/bin/activate\" >> ~/.bashrc

Activate and test

source ~/.bashrc

You should now see pe35 as your prompt.

Add a Package

  • Make sure you are in pe35 env

    pip install ipython[all]