secondbreakfast
secondbreakfast

Reputation: 4372

Cannot install tweepy on Rasbian with sudo pip install

I am trying to make a Twitter app with my Pi but when I try the command

sudo pip install tweepy

I get greeted by the following error:

AttributeError: 'NoneType' object has no attribute 'skip_requirements_regex'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/build/tweepy

Any suggestions? This also happens if I try to install directly from GitHub

Upvotes: 0

Views: 2044

Answers (4)

Kamyar Ghasemlou
Kamyar Ghasemlou

Reputation: 859

have you tried installing it from the source?

git clone https://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install

Upvotes: 1

Rohan D
Rohan D

Reputation: 514

I have tried "sudo pip install -U pip"

but still got errors but looking at documentation found better option.

easy_install tweepy

and it worked as expected.

Upvotes: 0

secondbreakfast
secondbreakfast

Reputation: 4372

Someone on the Raspberry Pi forums figured out the problem. Apparently there is a problem installing some applications with pip v1.1, which is the version in the Raspbian repository. Updating pip with the following command did the trick.

sudo pip install -U pip 

Upvotes: 4

Big_Mac
Big_Mac

Reputation: 3034

Someone had a similar question. Here is the link on github. https://github.com/tweepy/tweepy/issues/441

If that doesn't help you can go on the link of the main page

https://github.com/tweepy/tweepy

and then click download zip on the right.

Upvotes: 1

Related Questions