- 1 year ago
Windows10: Installing pyenv-managed python versions under custom path using localadmin-user
Comment
1 / 1
To install Pyenv-managed Python versions under a custom path using a local admin user on Windows 10, you can follow these steps:
Install Pyenv: Download and install the Pyenv installation script from the official website. Follow the instructions for Windows, which involve running a PowerShell script.
Set custom path: Open PowerShell with admin rights and run the following command to set the custom path:
css[Environment]::SetEnvironmentVariable("PYENV_ROOT", "C:\path\to\pyenv", "Machine")
Replace "C:\path\to\pyenv" with the path where you want to install Pyenv.
- Add path to system variable: Next, add the following path to the system environment variable "PATH":
vbnetC:\path\to\pyenv\bin;C:\path\to\pyenv\shims
- Install Python: Finally, you can install a Python version using Pyenv. Open PowerShell and run the following command:
pyenv install x.y.z
Replace "x.y.z" with the version number you want to install.