Created 03-06-2018 07:38 AM
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
Created 03-06-2018 07:42 AM
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"
.
Created 03-06-2018 08:00 AM
@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
Created 03-06-2018 10:37 AM
@Jay Kumar Sen
Please confirm if tweepy can be installed on python2.6 or python 2.7?