Pyenv

Aus AstroNeth-Wiki
Zur Navigation springen Zur Suche springen

mehrere Python-Versionen

  • brew install pyenv
  • brew info
  • pyenv install 3.11.5
  • pyenv install 3.11.0
  • pyenv versions
  • python --version

ℹ️ 

eval "$(/opt/homebrew/bin/brew shellenv)"

export PATH="$HOME/.pyenv/bin:$PATH"

eval "$(pyenv init --path)" _.

  • source ~/.bash_profile
  • pyenv global 3.11.0
  • python -m venv .venv
  • source .venv/bin/activate
  • pip install django
  • python -m django version
  • pip install mysqlclient

zurück zur ==> Hauptseite