Python/pyenv: Difference between revisions
< Python
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
= Installation = | = Installation for Windows = | ||
== Enable script execution in PowerShell == | == Enable script execution in PowerShell == | ||
| Line 22: | Line 22: | ||
https://pyenv-win.github.io/pyenv-win/ | https://pyenv-win.github.io/pyenv-win/ | ||
== Install python == | |||
Go to [https://www.python.org/downloads/ official site] and check maintenance status. | |||
Then choose a security version. | |||
Open GitBash and run the following commands. | |||
<source lang="sh"> | |||
pyenv install -l | grep '^3.11' | |||
</source> | |||
Revision as of 03:19, 9 October 2024
Installation for Windows
Enable script execution in PowerShell
Open PowerShell in Administration mode.
Then run this command.
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
https://stackoverflow.com/questions/64633727/how-to-fix-running-scripts-is-disabled-on-this-system
Install pyenv
Open another PowerShell in user mode.
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"
https://pyenv-win.github.io/pyenv-win/
Install python
Go to official site and check maintenance status.
Then choose a security version.
Open GitBash and run the following commands.
pyenv install -l | grep '^3.11'