Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install a tweepy package via pip?

Can't get pip to work; trying to install Tweepy per this article.

This thread managed to solve it for someone installing a different package, but I've tried all the strategies listed there including changing PATH in my environment variables, and I get "syntax error" for each of these three attempts:

pip install tweepy

python -m pip install tweepy

C:\Python27\Scripts\pip.exe install tweepy
like image 800
coopchange Avatar asked Dec 25 '22 01:12

coopchange


2 Answers

Are you using pip install command inside of the python prompt? If yes then you need to type it directly into command prompt.Open command prompt and type.

pip install tweepy
like image 74
ryux Avatar answered Dec 31 '22 14:12

ryux


Just try adding sudo before the command, should look like this sudo pip install tweepy

like image 28
Stuti Varshney Avatar answered Dec 31 '22 12:12

Stuti Varshney