Looking for the python command directly finds the global (system) python: PS > Get-Command pythonĪpplication python.exe 3.7.215. Anyway I don't have admin rights and must solve this in userland. Not sure if the global system path to Python37-32 is an issue here. Clearly I'm specifying the correction version, yet somehow it reverts to 3.7.Īlso python is on the path: PS > $env:Path -split ' 'Ĭ:\Program Files (x86)\Python37-32\Scripts\Ĭ:\Users\Foo\AppData\Local\Programs\Python\Python310\Scripts\Ĭ:\Users\Foo\AppData\Local\Programs\Python\Python310\Ĭ:\Users\Foo\AppData\Local\Programs\Python\Launcher\Ĭ:\Users\Foo\AppData\Roaming\Python\Scripts\Ĭ:\Users\Foo\AppData\Roaming\Python\Python37\Scripts My expectation is that a direct specification of the path using poetry env use. It's as if the path I specify in env use is ignored. PS > C:\Users\Foo\AppData\Local\Programs\Python\Python310\python.exe -version Please choose a compatible version or loosen the python constraint specified in the pyproject.toml file. The specified Python version (3.7.2) is not supported by the project (^3.10). Got two versions of python installed (3.7 and 3.10), poetry is set up properly, but I cannot get poetry to work with python3.10: PS > poetry env use C:\Users\Foo\AppData\Local\Programs\Python\Python310\python.exe I have to work on windows for a python project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |