You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pip install flameprof requires that python be the correct version of the executable. For those of us running python3 where python still points to python2, this causes a problem.
Steps to reproduce
On macOS 10.15 running python3 from homebrew, run pip3 install --user flameprof
$ cat $(which flameprof) will output:
#!/bin/sh
exec python -m flameprof "$@"
python --version will output Python 2.7.17
Proposed solution
The first way I can think of to solve this is to write the contents of flameprof with an explicit version numbered interpreter, IE: python2 or python3, as determined by the version running when installed. That seems fragile, but less fragile than what exists today.
The text was updated successfully, but these errors were encountered:
Description
pip install flameprof
requires thatpython
be the correct version of the executable. For those of us running python3 wherepython
still points to python2, this causes a problem.Steps to reproduce
pip3 install --user flameprof
cat $(which flameprof)
will output:python --version
will outputPython 2.7.17
Proposed solution
The first way I can think of to solve this is to write the contents of
flameprof
with an explicit version numbered interpreter, IE:python2
orpython3
, as determined by the version running when installed. That seems fragile, but less fragile than what exists today.The text was updated successfully, but these errors were encountered: