I have just downloaded and installed the latest version of Python on my Windows 7 machine.
Python 2.7.3
Now I want to install a Twitter library I found online:
However when I try to run easy_install tweepy
, I get this error message:
'easy_install' is not recognized as an in internal or external command, operable program or batch file.
Python has already been placed into my path, as I can invoke the Python program into the command line.
Here is a screenshot of my folder where Python is installed.

And inside the Tools folder:

And inside the scripts folder:

You need to:
Install easy_install: http://pypi.python.org/pypi/setuptools
Add
C:\Python27\Scripts
to yourPATH
I had the same issue with Python 3.4. Fixed it with the steps below:
cd C:\Python34\Scripts .\easy_install pip
(or what you need to install) with the .\ you sort of grant admin permissions to the command
I think that you should set the 'PATH' variable in order to execute it
Looks like easy-install is not itself installed on your system.
See this previous question for instructions on installing.
Basics official python packages need to be installed
You can install packages via the command line by entering:
python -m pip install --user numpy scipy matplotlib ipython jupyter pandas sympy nose
来源:https://stackoverflow.com/questions/10215810/easy-install-is-not-recognized-as-an-in-internal-or-external-command-operable