Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named 'setuptools' [duplicate]

Tags:

python

twitter

I'm new to python and have just installed the Python 3, I'm new to Python and I'm facing difficulties in importing a new library.

I'm trying to import tweepy-master library into python, I read the instructions given on their github page and did the "python setup.py install" command in command prompt (on windows 8), but I get the error which I've mentioned above,

Guys, please help, is there a separate library called setuptools which I need to install first?

like image 473
user2375506 Avatar asked Jan 27 '26 13:01

user2375506


1 Answers

It seems that you should use Setuptools, i.e. Distribute is deprecated:

Distribute is a deprecated fork of the Setuptools project. Since the Setuptools 0.7 release, Setuptools and Distribute have merged and Distribute is no longer being maintained. All ongoing effort should reference the Setuptools project and the Setuptools documentation.

Obsolete

You should use distribute - a setuptools fork which "offers Python 3 support".

Installation instructions (according to documentation):

  • download python-distribute.org/distribute_setup.py (link is broken, obsolete information)
  • run it: python distribute_setup.py

It is recommended to install pip too: easy_install pip

like image 127
Robert Lujo Avatar answered Jan 29 '26 12:01

Robert Lujo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!