![]() It's worth noting that running any python script blindly is inherently dangerous. ![]() This line gets the official "get-pip.py" script as per the installation notes and executes the script with the "exec" command.įor Python2 you would replace "urllib.request" with "urllib2": python -c "import urllib2 exec(urllib2.urlopen('').read())" Here is the single line program that can be run via the command line using Python 3: python -c "import urllib.request exec(('').read())" The official docs recommend using curl to download the get-pip script, but since I work on windows and don't have curl installed I prefer using python itself to download and run the script. The best way I have found is to write a single line program that downloads and runs the official get-pip script.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |