You want to learn how to install easy_install and that is exactly what I am going to show you in this post. The first time you want to add a python package to your installation, it can be a hassle doing it manually if you don’t have easy_install or pip installed. I will be showing Windows users how to do this. So, let us get to it because I know you have other things to do after this.
As you can see from the above image, it is recommended for Windows users to download ez_setup.py and then run it. Doing so will install easy_install in the right folder! That is what we will do here:
How To Install easy_install on Windows
1) Download or copy ez_setup.py file
Download ez_setup.py file and save it to your desktop or a convenient location that you will easily remember. Clicking the download link will open a python file on your browser that looks like the one below. Please copy everything in that file and move to the next step (Ctrl+A).
2) Create a file called ez_setup.py
After copying the content from ez_setup.py as described in step 1, create a file on your desktop using notepad or whatever text editor you like. Inside that file, paste the content you just copied. Save the file as ez_setup.py on your desktop. Move to step 3.
3) Go to your command line
From your command line, please navigate to where you saved the file from step 2. I suggested your desktop to make it easier to find. You can always use the dir command to see if your file is in the directory you are in.
Type : ez_setup.py and press Enter.
The installation will begin and once it is done, you can move on to the next step.
4) Verify that easy_install was installed
To verify that easy_install was actually installed, you should look inside the Scripts sub-directory which is inside your Python folder. Something similar to C:\Python27\Scripts. Mine looks like this:
5) Add this directory to your path environment variable
To easily use easy_install from your command line, you need to add the above directory to your PATH environment variable. If you are asking “what directory?”, don’t worry. Simply locate your Python installation and then navigate to Scripts sub-directory. It would look like this if your Python is installed in the C directory: C:\Python27\Scripts
Copy that directory to the clipboard and move to the next step.
6) The PATH environment variable
Please locate your advanced system settings. Click on Environment variables. Then under System variables, select Path and click Edit. Clicking edit will open a new small window. For the variable value, type a semi-colon and paste the directory from the previous step. Click OK until all windows are closed.
7) Using easy_install to install packages
To use easy_install, open your command line and type the following:
easy_install <name of package you want to install here>
Every time you want to install a package, easily type easy_install and the name of the package then press Enter. The package will be installed for you!
8) Alternative ways to manage Python packages
You can alternatively download and install pip if you don’t want to use easy_install as your package manager. This is a free world, after all!
Thank you for reading this post. If you found it helpful, please consider sharing it with others using the buttons below and subscribe for more. You can also watch a video I made on the same topic by clicking here.