Can I specify the python version?
0
Can I, in the command line, switch the python version 'on the fly'? Or specify the path to the interpreter. unlinking and linking python versions could break other things. If I "ln -s python3.6 /usr/bin/python" it works. if it is "ln -s python2 /usr/bin/python" it don't work.
asked 2 months ago6 views
1 Answers
0
If you have a Python file (say utility.py
) you can run it from the command line by specifying which Python interpreter: python3.6 utility.py
or python3 utility.py
.
Relevant questions
"E: Unable to locate package python-pip", Python 3.6.10, pip 9.0.3
asked 2 years agoComponent with bash script and python code - how to package/deploy
asked 9 months agoWaiter TrainingJobCompletedOrStopped failed: Waiter encountered a terminal
asked 4 years agoCan I specify the python version?
asked 2 months agoAWS Serverless SaaS Workshop - Issue - Python Version -
asked a month agoInstall the latest python (3.8) on EC2
Accepted Answerasked 2 years agomod_wsgi only available for python 2.7, needs python 3
asked 2 years agoHow to use external libraries in AWS Glue Python Shell
asked 3 months agoGreengrass v2 component dependencies
asked 25 days agolambda versioning
asked 3 years ago