Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install error easy_install python [duplicate]

I use Windows 7 and Python IDLE.

I'm trying to use easy_install but gut this error:

Traceback (most recent call last): File "", line 1, in easy_install NameError: name 'easy_install' is not defined

In included in my 'Path' the directory where it has been installed (C:\Python27\Scripts). Any thoughts on what could be wrong?

Maybe... In Python IDLE > File > Path browser, I cannot see C:\Python27\Scripts. How to add it ?

like image 249
ths1104 Avatar asked Feb 23 '23 12:02

ths1104


2 Answers

Make sure you've done all of this.

  • Adding Python to Windows Path.
  • Downloading and installing setuptools for appropriate python version.
  • Adding Scripts directory (for instance C:\Python27\Scripts) to Windows Path. You can check installing by opening a command prompt and typing "easy_install"
like image 154
koxt Avatar answered Mar 05 '23 02:03

koxt


easy_install is an executable program, not a Python script. Run it from the Windows command line, not from Python.

like image 43
Petr Viktorin Avatar answered Mar 05 '23 01:03

Petr Viktorin