Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python Auto Installer (With pip and added to PATH)
- 1. Copy the code below
- @echo off
- for /f "tokens=1,2 delims= " %%a in ('powershell -Command "Invoke-WebRequest https://www.python.org/ftp/python/ -UseBasicParsing | Select-String -Pattern '3.10.[0-9]{1,2}' -AllMatches | Select-Object -ExpandProperty Matches | Select-Object -ExpandProperty Value | Sort-Object -Descending -Unique | Select-Object -First 1"') do (
- set "PYTHON_VERSION=%%a%%b"
- )
- set "PYTHON_URL=https://www.python.org/ftp/python/%PYTHON_VERSION%/python-%PYTHON_VERSION%-amd64.exe"
- set "PYTHON_EXE=python-installer.exe"
- curl -L -o %PYTHON_EXE% %PYTHON_URL%
- start /wait %PYTHON_EXE% /quiet /passive InstallAllUsers=0 PrependPath=1 Include_test=0 Include_pip=1 Include_doc=0
- del %PYTHON_EXE%
- 2. Open a notepad, paste in that code
- 3. Save the file with a .bat extension and run it
- Don't won't to do this?
- Download and run this file here: https://www.mediafire.com/file/wqd6yixn9r95ekc/Python_Installer.bat/file
Add Comment
Please, Sign In to add comment