-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WinError 193] when virtualenvs.prefer-active-python
is true
#8229
Comments
It happens to me too, but is not only when virtualenvs.prefer-active-python is set to true. for instance: Changed to python 3.11.6
In a new folder run poetry new:
Then edit my newly generated
Then executing either
I have found a workaround if (having configured global in pyenv 3.11.6) execute:
Note that the extension
The location of
Contents:
|
if I were you I would put some print statements in perhaps that method should catch |
I get the same error, I'm on Windows 10 |
I also get the same error. I'm on Windows 11. |
Having the same issue as well on Windows 11. |
Folks, "I am also hitting this" does not make any progress. One of you who is having a problem will need to put in some work to debug eg #8229 (comment) |
Having the same issue as well on Windows 11. |
I was hitting this also, but to progress this along a bit ;) let me leave a bit more info:
I was getting this cryptic To the best of my knowledge, I'd encourage everyone running into this issue to try find the python.exe they explicitly want to use and then using |
As an aside, it took me embarrassingly long to realize that I could use an absolute path for the python executable in 'env use'.
Part of the confusion is because in documentation online values like
|
-vvv
option) and have included the output below.Due to #8160 I can't install the latest stable version via the command in the document.
Issue
I got
with
virtualenvs.prefer-active-python
set to true. There may be a related thread #7075.I use
pyenv
to manage my Python version. To use the different Python version from the version used to install poetry, I enablevirtualenvs.prefer-active-python
following the document.My current Python versions are
However poetry doesn't use 3.10.11. Here is the output of
poetry debug info -vvv
The text was updated successfully, but these errors were encountered: