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
[x ] I have searched the issues of this repo and believe that this is not a duplicate.
[x ] I have searched the documentation and believe that my question is not covered.
In the 0.12.x release series, it seems that the python interpreter that get-poetry.py is run by does not matter -- the poetry entrypoint always assumes that /usr/bin/env/python returns the executable that is activated for Poetry.
I have a Python3 only project, but on Mac OS X, my python executable points at 2.7.x. Python 3.6.x is installed as python3.
Whenever I try to run any poetry command, I get the following error:
[RuntimeError]
The current Python version (2.7.15) is not supported by the project (^3.6)
Please activate a compatible Python version.
I ended up having to hack the following part of the get-poetry script to make sure poetry is invoked with python3:
BIN = """#!/usr/bin/env python
import glob
import sys
import os
lib = os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "lib"))
sys.path.insert(0, lib)
if __name__ == "__main__":
from poetry.console import main
main()
"""
The text was updated successfully, but these errors were encountered:
In the 0.12.x release series, it seems that the python interpreter that get-poetry.py is run by does not matter -- the poetry entrypoint always assumes that /usr/bin/env/python returns the executable that is activated for Poetry.
I have a Python3 only project, but on Mac OS X, my
python
executable points at 2.7.x. Python 3.6.x is installed aspython3
.Whenever I try to run any poetry command, I get the following error:
[RuntimeError]
The current Python version (2.7.15) is not supported by the project (^3.6)
Please activate a compatible Python version.
I ended up having to hack the following part of the get-poetry script to make sure poetry is invoked with python3:
The text was updated successfully, but these errors were encountered: