I’m trying to deploy a python web service with python 3.8.9 by setting the PYTHON_VERSION
environment variable to be 3.8.9, as per the documentation . However, I can not find any trace of python 3.8.9 on the VM when I shell into it.
ls -ls /usr/bin/python*
and ls -ls /usr/local/bin/python*
both show only show 3.7:
render@shell:~/project/src$ ls -ls /usr/local/bin/python*
0 lrwxrwxrwx 1 root root 7 Jun 23 2021 /usr/local/bin/python -> python3
0 lrwxrwxrwx 1 root root 14 Jun 23 2021 /usr/local/bin/python-config -> python3-config
0 lrwxrwxrwx 1 root root 9 Jun 23 2021 /usr/local/bin/python3 -> python3.7
0 lrwxrwxrwx 1 root root 16 Jun 23 2021 /usr/local/bin/python3-config -> python3.7-config
36 -rwxr-xr-x 2 root root 36864 Jun 23 2021 /usr/local/bin/python3.7
0 lrwxrwxrwx 1 root root 17 Jun 23 2021 /usr/local/bin/python3.7-config -> python3.7m-config
36 -rwxr-xr-x 2 root root 36864 Jun 23 2021 /usr/local/bin/python3.7m
4 -rwxr-xr-x 1 root root 2894 Jun 23 2021 /usr/local/bin/python3.7m-config
Additionally, poetry can not find python 3.8 either:
render@shell:~/project/src$ poetry env use 3.8
/bin/sh: 1: python3.8: not found
I’m not sure how to debug further. Am I missing something?