How do i upgrade the version of python that is inside my virtualenv

globally i have python3.7 but venv uses python2.7

also im on ubuntu

If you have it installed, you can run on bash by typing “python3 {script-name}”. Or even better, you can always add this line on the beginnig of your python files #!/usr/bin/env python3

1 Like

virtualenv -p python3 env

this did it