-
Cross posted from https://stackoverflow.com/questions/77463416/with-asdf-installed-python-why-does-pytest-use-a-differentpython-version-than-t I have installed several Python versions using asdf. I am also using Pipenv to manage dependencies. Although I have Python 3.9.4 referenced in my Pipenv file, and asdf reports that I'm using Python 3.9.4, pytest reports that it's using 3.11.6. For example:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Turns out I have to explicitly set the Python version on pipenv when using asdf:
|
Beta Was this translation helpful? Give feedback.
-
For me, also using Also for whatever reason, Poetry was still stuck on the other Python version until I updated to Poetry to 2.2.1 (perhaps I should have tried more cache clearing). |
Beta Was this translation helpful? Give feedback.
Turns out I have to explicitly set the Python version on pipenv when using asdf: