pyenv exec python script.py

Category: Python & pip

pyenv exec python script.py

Run a command using the pyenv-selected Python explicitly

Runs a command using pyenv's Python explicitly, bypassing any other Python in PATH.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.