Benutzer-Werkzeuge

Webseiten-Werkzeuge


playground:about:pyenv-win
Windows PowerShell Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.

Lernen Sie das neue plattformübergreifende PowerShell kennen – https://aka.ms/pscore6

PS C:\Users\Stefan> Invoke-WebRequest -UseBasicParsing -Uri „https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1“ -OutFile „./install-pyenv-win.ps1“; &„./install-pyenv-win.ps1“

Verzeichnis: C:\Users\Stefan

Mode LastWriteTime Length Name —- ————- —— —- d—– 05.05.2024 16:11 .pyenv pyenv-win is successfully installed. You may need to close and reopen your terminal before using it.

PS C:\Users\Stefan> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine Ausführungsrichtlinie ändern Die Ausführungsrichtlinie trägt zum Schutz vor nicht vertrauenswürdigen Skripts bei. Wenn Sie die Ausführungsrichtlinie ändern, sind Sie möglicherweise den im Hilfethema „about_Execution_Policies“ unter „https:/go.microsoft.com/fwlink/?LinkID=135170“ beschriebenen Sicherheitsrisiken ausgesetzt. Möchten Sie die Ausführungsrichtlinie ändern? [J] Ja [A] Ja, alle [N] Nein [K] Nein, keine [H] Anhalten [?] Hilfe (Standard ist „N“):

Pyenv für Windows installieren

PS C:\Users\Stefan> Invoke-WebRequest -UseBasicParsing -Uri „https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1“ -OutFile „./install-pyenv-win.ps1“; &„./install-pyenv-win.ps1“

Verzeichnis: C:\Users\Stefan

Mode LastWriteTime Length Name —- ————- —— —- d—– 05.05.2024 16:11 .pyenv pyenv-win is successfully installed. You may need to close and reopen your terminal before using it.

PS C:\Users\Stefan> pyenv install -l

:: [Info] :: Mirror: https://www.python.org/ftp/python 2.4-win32 … 3.12.3 3.13.0a1-win32 3.13.0a1-arm

PS C:\Users\Stefan> pyenv install 3.12.3

PS C:\Users\Stefan> pyenv global 3.12.3

PS C:\Users\Stefan> pyenv version
3.12.3 (set by C:\Users\Stefan\.pyenv\pyenv-win\version)


PS C:\Users\Stefan> pyenv
pyenv 3.1.1

Usage: pyenv <command> [<args>]

Some useful pyenv commands are:
   commands     List all available pyenv commands
   duplicate    Creates a duplicate python environment
   local        Set or show the local application-specific Python version
   latest       Print the latest installed or known version with the given prefix
   global       Set or show the global Python version
   shell        Set or show the shell-specific Python version
   install      Install a Python version using python-build
   uninstall    Uninstall a specific Python version
   update       Update the cached version DB
   rehash       Rehash pyenv shims (run this after installing executables)
   vname        Show the current Python version
   version      Show the current Python version and its origin
   version-name Show the current Python version
   versions     List all Python versions available to pyenv
   exec         Runs an executable by first preparing PATH so that the selected Python
   which        Display the full path to an executable
   whence       List all Python versions that contain the given executable

See `pyenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/pyenv-win/pyenv-win#readme

--version
export
help
migrate
shims

PS C:\Users\Stefan> python --version
Python 3.12.3

> python -c "import sys; print(sys.executable)"
\path\to\.pyenv\pyenv-win\versions\<version>\python.exe

PS C:\Users\Stefan> python -c "import sys; print(sys.executable)"
C:\Users\Stefan\.pyenv\pyenv-win\versions\3.12.3\python.exe

pyenv update

eval „$(pyenv init -)“

/volume1/web/dokuwiki/data/pages/playground/about/pyenv-win.txt · Zuletzt geändert: 2025/02/28 20:41 von 20.171.207.133