We're getting ```No valid Python interpreter found...
# general
e
We're getting
Copy code
No valid Python interpreter found. For this Pants version, Pants requires Python 3.6+.
Could not find . Please ensure  is on your PATH.
with 1.23.0. The pants documentation still says:
Copy code
By default, pants uses ['CPython>=2.7,<3']
w
hey Adam
so, the first message is for pants itself, and the latter message is for code that pants is testing
let me look in the release notes to answer your question
e
is there a way to force the generated pex to use
/usr/bin/env python3
?
w
for which part: pants, or the code that pants is building?
e
the generated artifact (
pants binary
)
w
oh, or do you mean to set the
shebang
line? you can do that explicitly, yea
e
yes the shebang
w
can find-in-page in the build dictionary for “shebang”:
shebang = ..., 	Use this shebang for the generated pex. (default: None)
e
thanks