how to change python version on pythonanywhere.com. recently i came across a website where you can host a python script or web app. there are lots of python developers who would like to test or host their python script or web app online and have it run for 24hours. with pythonanywhere.com, you can easily do that with their free account. so for those who are finding it difficult to switch python version to higher on pythonanywhere website, here is how to do it so you can use this to run your script on lets say python 3.7, python 3.8, python 3.9 etc.
How To Host Python Script online
when i first started using pythonanywhere to host some of my basis python scripts for test run, experience some issues because pythonanywhere by default is running the script using python 2.7 version which is outdated for the script. so i was looking for a way to run it using python3.8 but couldn't do that. after series of search on how to change pythonanywhere python version to 3.7, 3.8, 3.9 or higher, i found a solution to ths. so follow the steps below to run your python script with python3.8 on pythonanywhere.
How To Change Python Version On pythonanywhere.com
STEP 1: login to your pythonanywhere account and then click on the option Called "Web"
STEP 2: it will take you to a page, there just scroll down to the bottom, under the option "Code:" , you will see the python version you are running. just click on the edit pencil icon to change your python version if it is not running higher version.
if after changing it and its not working, then make use of the Console Batch to run your script using any python version via the terminal. to do this, use open a batch terminal from the Console Option page, then type this below
python3.8 yourpythonscript.py
visit
www.gurubest.com to view the latest post update you are not seeing right now.
more articles update is posted on
gurubest every day,so don't be the last to get update to your email.
Subscribe by emailDON'T FORGET TO SHARE WITH YOUR FRIENDS ON FACEBOOK BY CLICKING THE SHARE BUTTON.
Related Posts:
No Responses to "how to change python version on pythonanywhere.com"
Post a Comment