Reputation: 103
I'm facing a problem trying to import tweepy library in my code, I've tried to uninstall it and then install it again but I still get the same problem.
This is my code (error) and command line:
Thank you.
Upvotes: 3
Views: 3005
Reputation: 21
Try to install this version instead
pip install git+https://github.com/tweepy/tweepy
This command will install the GitHub's latest version
Upvotes: 1
Reputation: 357
Tweepy will not work on Python 3.7 (see reasons in below github post), instead if you are using Anaconda, create an alternative environment in Python 3.6.7 and it will work. :-)
I've been experiencing similar idiosyncrasies with wptools and other packages.
https://github.com/tweepy/tweepy/issues/1017
Upvotes: 0
Reputation: 103
Thank you everyone, I just downloaded Python 3.6 and solved the problem :)
Upvotes: 1
Reputation: 14001
Tweepy doesn't work with python 3.7 yet.
Similar question: Having trouble installing Tweepy
Official documentation says : https://github.com/tweepy/tweepy
Python 2.6 and 2.7, 3.3, 3.4, 3.5 & 3.6 are supported.
As suggested by Samuel. Create a virtual environment I would suggest go with 3.6.
And then pip install tweepy in that environment.
Upvotes: 2
Reputation: 185
Try using a virtual environment, I had the same issue when i was still using windows.
Upvotes: 1