How To Install Easy_install – Package Manager

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.

easy installimage 300x173 How To Install Easy install   Package Manager

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).

setupstools 300x182 How To Install Easy install   Package Manager

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:

easy installation 300x196 How To Install Easy install   Package Manager

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.

blogpost 300x291 How To Install Easy install   Package Manager

7) Using easy_install to install packages

To use easy_install, open your command line and type the following:

easy_install Twitter

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!

finalimage 300x291 How To Install Easy install   Package Manager

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.

26 thoughts on “How To Install Easy_install – Package Manager

  1. Pingback: window csm!!! | Gatadas

  2. Pingback: {cucxn rest devops: how many sysadmins does it take to..reset a vm account} | Sam I Am Sam

  3. Seems like this process worked for everybody… but me. I get the following error: “ImportError: No Module named pkg_resources”. It clearly is finding easy install in the path and at least trying to run it. But I can’t install any packages. I am running python2.7, windows 8.

  4. But why is it necessary to copy the contents of ‘ez_setup.py’ into another file named ‘ez_setup.py’?

    In other words, I’m confused as to why just downloading ‘ez_setup.py’ and running it as described in step 3 will not work. Unless there are permission issues and so forth distinguishing the download file from the ‘written’ file….

    • You can put the content in whatever file you want. That is not the point. The point of saving that content in a file is simply because when I shared that link, it opened a text file on a page. So you could not simply ‘download’ it and run it.

  5. Pingback: {installing python and easy_install on win7} | Sam I Am Sam

  6. Hi, great tutorial, it made it simple for me to install easy_install.
    My problem is, I am trying to install through it a pykalman package, but still it gives me an error saying that “‘easy_install’ is not recognized as an internal or external command..”. I doublechecked and easy_install is correctly installed and the address is added to the PATH.
    Any ideas of how to fix this?
    Thank you!

    • The only suggestion I was about to give you was to make sure you have added to the system variable path – but you already did that. First make sure you can use easy_install in your command line by simply typing easy_install. Now, if that does not work, install pip using easy_install like this: easy_install pip; after that is installed, try to use pip instead of easy_install to install what you wanted. Let me know how it goes.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">