Pyenv: Unterschied zwischen den Versionen

Aus AstroNeth-Wiki
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt: „== mehrere Python-Versionen == * brew install pyenv * brew info * pyenv install 3.11.5 * pyenv install 3.11.0 * pyenv versions * python --version * echo 'eval "$(pyenv init --path)"' >> ~/.bash_profile * 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 {{Hauptseite}} Kategorie:Python
 
KKeine Bearbeitungszusammenfassung
 
(9 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 7: Zeile 7:
* pyenv versions
* pyenv versions
* python --version
* python --version
* echo 'eval "$(pyenv init --path)"' >> ~/.bash_profile
{{Message-info|Inhalt='''Inhalt von .zprofile:
 
eval "$(/opt/homebrew/bin/brew shellenv)"
     
export PATH="$HOME/.pyenv/bin:$PATH"
 
eval "$(pyenv init --path)"'''}}
* source ~/.bash_profile
* source ~/.bash_profile
* pyenv global 3.11.0
* pyenv global 3.11.0
Zeile 15: Zeile 21:
* python -m django version
* python -m django version
* pip install mysqlclient
* pip install mysqlclient
* pyenv install --list | grep " 3\.[678]"


{{Hauptseite}}
{{Hauptseite}}
[[Kategorie:Python]]
[[Kategorie:Python]]

Aktuelle Version vom 19. September 2023, 20:50 Uhr

mehrere Python-Versionen

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

ℹ️ Inhalt von .zprofile:

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
  • pyenv install --list | grep " 3\.[678]"

zurück zur ==> Hauptseite