TransWikia.com

After downloading Tweepy I don't know where to locate it

Super User Asked by Candle on December 30, 2020

I have downloaded Tweepy, and I locate its folder in the following path, where I have other libraries such as Pygame and swampy:

C:Python25Libsite-packages

… but when I import it – even in the command line – to make sure that the installation was successfully done, it says:

import tweepy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:Python25libsite-packagestweepy__init__.py", line 14, in <module>
from tweepy.api import API
File "C:Python25libsite-packagestweepyapi.py", line 8, in <module>
from tweepy.binder import bind_api
File "C:Python25libsite-packagestweepybinder.py", line 22, in <module>
raise ImportError, "Can't load a json library"
ImportError: Can't load a json library

One Answer

You are getting this error because your python installation 2.5 does not have any json libraries that Tweepy is looking for. Tweeppy currently tries to use the simplejson library, the json library or the django.utils library, if you don't have then it throws the error you see now.

Answered by jeffery_the_wind on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP