This will run the get-pip.py file Python codes which will simply install the pip for the macOS or OS X. $ curl -o get-pip.pyĪND then we will call the get-pip.py with the Python interpreter. We will provide the URL with the -o option where we will set the name of the downloaded get-pip.py file name. First, we will download the get-pip.py script with the curl command. get-pip.py is a Python script that will simply download and install the Pip package for Python. Get-pip.py is another way to install pip in MacOS. $ sudo pip install -upgrade pip Install Pip with get-pip.py On MacOS We will use the pip command because it installed already and provide the -upgrade option with the package name which is also pip. If the pip is already installed we can also upgrade the existing pip installation with the easy_install like below. We can install pip with the easy_install command like below. A virtual environment is a semi-isolated Python environment that allows packages to be installed for use by a particular application, rather than being installed system wide. Before pip easy_install was the standard package manager for the Python. Starting with Python 3.4, it is included by default with the Python binary installers. Install Pip with easy_install On MacOSĮasy_install is a Python module bundled with setuptools which gives us the ability to download, build, install, and manage Python packages. The python2 version is Python2.7.16 and Python3 version is Python3.6.8. So we can use installation commands for both Python2 and Python3. We can see that both PYthon2 and PYthon3 is installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |