Support Questions
Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Innovation Accelerator group hub.

can tweepy module could be used for python 2.6

Explorer

i have default version python 2.6 in hortonworks sandbox, and i developed a program in pycharm that import tweepy but when i execute the program from sandbox its giving me error that no module named tweepy,, how could i resolve this issue TIA

3 REPLIES 3

Super Mentor

@Sana Faraz

Can you try setting the "PYTHONPATH" to point to the correct module directory that contains the "tweepy" module?

Example:

export PYTHONPATH=$PYTHONPATH:/PATH/TO/tweepy

.

You can find the current default system path as, Can you check if it includes the "tweepy" module path? If not then you might want to try appending that path as described in: https://stackoverflow.com/questions/11101145/correct-directory-for-tweepy-api-to-add-to-the-pythonpa...

# python -c "import sys; print sys.path"

.

Explorer

@Jay Kumar Sen

actually i don't know whether the tweepy has installed or not. can you please let me know hot to install it correctly ?and on which version of python i should install it

Explorer

@Jay Kumar Sen

Please confirm if tweepy can be installed on python2.6 or python 2.7?