I'm trying to setup a project using an older versi...
# general
f
I'm trying to setup a project using an older version of Python (3.7), which is not installed on the machine (the machine is running 3.9). I setup
interpreter_constraints = ["==3.7.*"]
inside
pants.toml
, and
./pants test
and
./pants lint
works well. But whenever I try to do a
./pants run
for some
pex_binary
, I receive the error
/usr/bin/env: 'python3.7': No such file or directory
. It seems to look for a global installation of
python3.7
in my machine, instead of the one installed by pants. Is there some configuration I needed to fix this? The pex binary:
Copy code
pex_binary(
    name="manage",
    entry_point="manage.py",
)
`manage.py`:
Copy code
print('Hello world')