Python

  • There's issues with installing things that require six on El Capitan: https://github.com/pypa/pip/issues/3165 Adding --ignore-installed six to the pip command gets around this.

Setting up isolated environments on Ubuntu

  • python3 -m pip install --user pipx
  • python3 -m pipx ensurepath
  • pipx install virtualenv
  • In the directory in which you want the environment: virtualenv venv
  • chmod u+x venv/bin/activate
    • ./venv/bin/activate

To install using that environment's pip:

venv/bin/pip install <package>

Running pip globally in Python 3

Example:

python3 -m pip install git+https://github.com/kmaasrud/oboe

#python #environment #pip