Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get setuptools and easy_install?

Tags:

python

egg

I downloaded the ez_setup code from here: http://peak.telecommunity.com/dist/ez_setup.py and ran it, but i don't think setuptools was properly installed. When i try to open an egg using easy_install i am getting a NameError. Any thoughts?

Here is the specific error:

Traceback (most recent call last):   File "C:...setup.py", line 223, in <module>     easy_install eggsetup.py NameError: name 'easy_install' is not defined 
like image 419
dopatraman Avatar asked Dec 27 '11 23:12

dopatraman


People also ask

How do I get setuptools?

To install setuptools visit http://pypi.python.org/pypi/setuptools and follow the instructions for your operating system. Also, check out http://peak.telecommunity.com/DevCenter/EasyInstall for more instructions on how to install setup tools.

How do I download Python setuptools?

Follow the below steps to install the Setuptools package on Linux using the setup.py file: Step 1: Download the latest source package of Setuptools for Python3 from the website. Step 3: Go to the setuptools-60.5. 0 folder and enter the following command to install the package.

Is setuptools included in Python?

Setuptools is a package development process library designed to facilitate packaging Python projects by enhancing the Python standard library distutils (distribution utilities). It includes: Python package and module definitions.


2 Answers

For linux versions(ubuntu/linux mint), you can always type this in the command prompt:

sudo apt-get install python-setuptools

This will automatically install easy_install.

like image 183
Anusha Rao Avatar answered Sep 21 '22 05:09

Anusha Rao


For python3 on Ubuntu

 sudo apt-get install python3-setuptools 
like image 22
Ahmad Yoosofan Avatar answered Sep 23 '22 05:09

Ahmad Yoosofan