Forked from LucasBonafe/Powershell Python 2.7 Install
Created
November 21, 2020 09:59
-
-
Save Guitar420/6b126013e17390cb4ce267b5a31a4618 to your computer and use it in GitHub Desktop.
Install Python 2.7 on Windows without Admin permissions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32: https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi | |
64: https://www.python.org/ftp/python/2.7.14/python-2.7.14.amd64.msi | |
pip: https://bootstrap.pypa.io/get-pip.py | |
PowerShell: | |
cd Downloads | |
Invoke-WebRequest https://www.python.org/ftp/python/2.7.14/python-2.7.14.msi -OutFile python-2.7.14.msi | |
msiexec /a python-2.7.14.msi /qb TARGETDIR=C:\python27 | |
$env:path="$env:Path;C:\Python27" | |
python | |
pip install: | |
Invoke-WebRequest https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz#md5=35f01da33009719497f01a4ba69d63c9 -OutFile pip-9.0.1.tar.gz | |
//unpack | |
cd .\pip-9.0.1 | |
python .\setup.py install | |
$env:path="$env:Path;C:\Python27\Scripts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment