Mind Flow Productions

Systems & Productivity

Make sure pip3 is installed (TODO: make a doc for installing pip3)

Install virtualenv and virtualenvwrapper

pip3 install virtualenv
pip3 install virtualenvwrapper
source virtualenvwrapper.sh

There are more things you can do to customize how virtualenvwrapper works. Google for it!

Create a virtual environment

Use mkvirtualenv to create a virtualenv that uses Python3

mkvirtualenv -p python3 env_name

env_name is just an example - use a name appropriate to your project for all mindflow sites the project name and the virtualenv name should be the same, and it is also handy if the SITENAME_SHORT is the same (see siteconfig.py) but not required.

Activate your virtual environment

workon env_name

To deactivate

deactivate

Python3 builtin virtualenv

Instead of using virtualenv you can use this command in Python3 (need to research this)

python3 -m venv myenv

Not sure if it allows the shortcuts like virtualenvwrapper creates (such as workon)

  devops | setup      virtualenv