![]() ![]() So in a nutshell, on macOS and Windows, you would have to download a so called bootstrap script, called get-pip.py.Ġ1:09 And you would download that through a browser or through a command line tool like curl, and once you’ve downloaded the get-pip script, you would run it with the Python interpreter.Ġ1:21 So you would just go to the terminal and run something like python get-pip.py and the get-pip script would then automatically install and set up pip on your system.Ġ1:31 Now, on most versions of Linux, especially if you’re using a version based on Debian Linux like Ubuntu, you would actually go through the system package manager to install pip.Ġ1:41 To do that, you would first run a command like sudo apt update to refresh your system’s package manger and then you would follow up with sudo apt install python-pip, and running that command would add pip to your existing Python install.Ġ1:57 Now adding pip to an existing Python install is a little bit fiddly, there are a couple of edge cases you need to look out for, one resource that I can recommend to learn more about how to do this, is the Python packaging guide.Ġ2:11 You can find it at. Now of course that doesn’t really help you if the pip command doesn’t work in your system right now, so let’s talk about what you can do if pip is not available on your system yet.Ġ0:31 The first option to get a working pip install on your system would be to upgrade to a more modern version of Python which is automatically going to include the latest version of pip.Ġ0:40 Now, this would be my preferred option, but of course, if you’re working with older legacy versions of Python and you have a bunch of code running on them already, then that isn’t really the best option.Ġ0:53 So, option two would be to add pip to your existing Python install, and that is definitely possible, I am going to show you how to do that now. So let’s talk about installing pip if it’s not already on your system and then also how you can upgrade to the latest version of pip.Ġ0:14 So all modern versions of Python 2 and Python 3 are going to include pip by default. 00:00 Before we continue, I want to make sure you actually have a working pip install at this point, and that it’s fully up to date. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |