Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 1.23 KB

python-setup.md

File metadata and controls

63 lines (41 loc) · 1.23 KB

Python

Python

Python is a programming language that lets you work quickly and integrate systems more effectively.

Install Pyenv and Python 3.10.7

Pyenv lets you easily switch between multiple versions of Python.

  • Option 1 Easy install using mac-setup:

    bash <(curl -fsSL raw.githubusercontent.com/monsieurborges/mac-setup/master/install) python310
  • Option 2 Install on your own:

    1. Install pyenv:

      brew install pyenv
    2. Install pyenv-virtualenvwrapper :

      brew install pyenv-virtualenvwrapper
    3. Init Pyenv:

      eval "$(pyenv init -)"
    4. List the available Python versions:

      pyenv install --list
    5. Install the Python versions you want using the example below:

      # Python 3.10.7
      PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.10.7

Set the Python version you want as default

  1. Set the default Python version:

    pyenv global 3.10.7
  2. Set up the virtualenvwrapper:

    pyenv virtualenvwrapper