2

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?

0

1 Answer 1

9

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

4
  • Link seems to be broken...
    – Wazy
    Oct 10, 2014 at 7:07
  • +1 for updating the answer
    – Wazy
    Oct 14, 2014 at 5:44
  • The distribute_setup.py link is again broken D: May 2, 2016 at 2:33
  • Yes, thanks for noting this out. This is obsolete information, so should not be used - use Setuptools instead. May 5, 2016 at 21:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.