Python/pyenv: Difference between revisions

From Fundamental Ramen
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= Installation =
== Enable script execution in PowerShell ==
Open PowerShell in Administration mode.
Open PowerShell in Administration mode.


Line 8: Line 12:


https://stackoverflow.com/questions/64633727/how-to-fix-running-scripts-is-disabled-on-this-system
https://stackoverflow.com/questions/64633727/how-to-fix-running-scripts-is-disabled-on-this-system
== Install pyenv ==
Open another PowerShell in user mode.
<source lang="powershell">
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"
</source>

Revision as of 03:10, 9 October 2024

Installation

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"