tarun7si2 Posted December 27, 2016 Posted December 27, 2016 I am new to heliohost.I am running a python script which needs module tweepy. www.tweepy.org can you please install python module tweepy. I am trying to run a script which demand this. I tried installing using comand "pip install tweepy" cron job. but it gives error says pip command not found. i am on johnny server. Thanks and you guys are doing great job.
tarun7si2 Posted December 29, 2016 Author Posted December 29, 2016 Thanks for processing this request, and it is working now. http://tarun7singh.heliohost.org/test.cgi For all others trying to import modules that are not available, i found a workaround for it. I will try to explain it as best as i can (I tested it on Ubuntu) - 1. download and install module on your computer (let's say tweepy) 2. upload all the files related to a folder with name of module (for this case tweepy) 3. add these lines before your code. (for enabling debugging) #enable debugging import cgitb cgitb.enable()4. now import sys module and append path to your library. (in this case my module folder was in public_html) import sys sys.path.append("/tweepy") import tweepy5. You have to do this for all the other libraries required by your library. It will start working. Hope this helps.
Recommended Posts