How to enable python 3.7 and run command for the cpanel users

Sujoy Dhar

Well-Known Member
Jul 24, 2016
76
12
58
India
cPanel Access Level
Root Administrator
Twitter
I can run the command python3.7 but whenever cpanel user is running the command starting with python3.7 ..... command
the user is getting the following error :

jailshell: python3.7: command not found

Running :

#python --version

Showing

Python 2.7.5

I have installed python 3.7 already but sstill it is showing like that

Running from user :

#python3.7 -V
jailshell: python3.7: command not found

Running from root :

#python3.7 -V
Python 3.7.4
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,300
363
Houston
We use the operating system default which is currently python 2.7.5 - to use python3 there are some considerations you'll have to take into account. The following threads may be helpful