10

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.

enter image description here

And inside the Tools folder:

enter image description here

And inside the scripts folder:

enter image description here

Only Bolivian Here
  • 35,719
  • 63
  • 161
  • 257

6 Answers6

11

You need to:

  1. Install easy_install: http://pypi.python.org/pypi/setuptools

  2. Add C:\Python27\Scripts to your PATH

FogleBird
  • 74,300
  • 25
  • 125
  • 131
6

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

Ralu
  • 61
  • 1
  • 1
2

I think that you should set the 'PATH' variable in order to execute it

Aito
  • 6,812
  • 3
  • 30
  • 41
1

Looks like easy-install is not itself installed on your system.

See this previous question for instructions on installing.

Community
  • 1
  • 1
Larry Lustig
  • 49,320
  • 14
  • 110
  • 160
0

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
Ashish
  • 2,026
  • 17
  • 19
0

0.Install easy_install

1.search for "edit the system environment variables" in search.

2.click environment variables.

3.under "system variables" click "path" and click edit.

4.click "new".

5.go back and copy the path where python package(easy_install) is installed and paste it there.

6.click ok everything.

7.check now it works...

RakeshP-0304
  • 151
  • 1
  • 3
  • 10