Jump to content


Photo

Running python script from Heliohost


  • Please log in to reply
1 reply to this topic

#1 charmender

charmender

    Newbie

  • Members
  • 4 posts

Posted 13 April 2019 - 06:27 AM

You have to set permissions to 755 by going to the file manager in cPanel, clicking on the file, then clicking permissions up top. I would also suggest putting python3.6 in the top line instead of python, otherwise it uses version 2.6. ovo.fyi/lorem-ipsumovo.fyi/emp-mailovo.fyi/10-minute-mail

 

 

I also found a way to install any python package you want using a pure script like the one you're trying to do! If you are using packages in your script that aren't installed on your HelioHost account obviously you're gonna have a bad time.


Edited by charmender, 16 April 2019 - 05:25 PM.


#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 17,729 posts
  • Gender:Male

Posted 14 April 2019 - 12:48 AM

The default python version has to be the one that the OS installs otherwise the OS would be broken. Luckily you can install multiple versions of python easily. To use python 3.6 just use the shebang
#!/usr/bin/python3.6





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users