Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #install based on: https://www.youtube.com/watch?v=XcMd7ZPU8q8 credit to: Natetronn
- #open a powershell instance in terminal or powershell directly
- 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"
- [System.Environment]::SetEnvironmentVariable('PYENV',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
- [System.Environment]::SetEnvironmentVariable('PYENV_ROOT',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
- [System.Environment]::SetEnvironmentVariable('PYENV_HOME',$env:USERPROFILE + "\.pyenv\pyenv-win\","User")
- [System.Environment]::SetEnvironmentVariable('path', $env:USERPROFILE + "\.pyenv\pyenv-win\bin;" + $env:USERPROFILE + "\.pyenv\pyenv-win\shims;" + [System.Environment]::GetEnvironmentVariable('path', "User"),"User")
- #confirm one install in "enviroment variables"
- #close powershell instance then open a new instance test by entering
- pyenv
- #if it fails you may need to temporarily uninstall other python instances like anaconda or python 3.10
- #see what versions you can install
- pyenv install --list
- #then install the specified version
- pyenv install 3.9.13
- #now confirm installed versions
- pyenv versions
- #set version of python to be used
- pyenv global 3.9.13
- python -V
- #now to actually coompile the requirtements.txt
- #you can open a instance of terminal in the working directory you are using by right clicking and opening a terminal
- python -m pip install -r requirements.txt nuitka zstandard
- #compile the program
- python -m nuitka --standalone --onefile --windows-icon-from-ico=insigniaDNS_icon.ico -o insigniaDNS.exe insigniaDNS.py
Advertisement
Add Comment
Please, Sign In to add comment