Ich versuche, ein Python-Programm mit Twitter-Modul zu starten. Ich installierte die twitter und json Pakete über:ImportError: Nein Modul namens twitter - MacOS Sierra
pip install twitter
pip install simplejson
Während das Programm läuft ich Fehler sowohl in Python 2 und Python 3-Version bin immer.
Mein Code:
try:
import json
except ImportError:
import simplejson as json
import twitter
from twitter import Twitter, OAuth, TwitterHTTPError, TwitterStream
Fehler:
Traceback (most recent call last):
File "Untitled.py", line 5, in <module>
import twitter
ImportError: No module named 'twitter'