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.

preguntada hace 2 años554 visualizaciones
1 Respuesta
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.

profile pictureAWS
EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas