Beide Seiten der vorigen Revision
Vorhergehende Überarbeitung
Nächste Überarbeitung
|
Vorhergehende Überarbeitung
|
playground:about:pyenv-win [2025/02/28 20:40] 20.171.207.133 alte Version wiederhergestellt (2025/02/25 21:16) |
playground:about:pyenv-win [2025/04/24 03:08] (aktuell) 192.99.7.188 alte Version wiederhergestellt (2025/04/20 06:36) |
| |
</note> | </note> |
| 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 |
| |
| <code> |
| 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 |
| |
| 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 |
| |
| </code> |
| |
| eval "$(pyenv init -)" |
| |