Replies: 2 comments 2 replies
-
A bodgy workaround that is doing the job at the moment is manually adding the site packages via import sys
sys.path.append('my\\venv\\site-packages') # obviously not my real filepath |
Beta Was this translation helpful? Give feedback.
1 reply
-
This detail may help point you in the right direction: #3717 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Python 3.11.7
Windows 10 and Ubuntu 22.04 via Docker/WSL2
I have tried using pyenv (both on Windows and Ubuntu) and currently Windows which is ultimately where I'd like things to be running but an Ubuntu dev container was convenient at the time as I could just globally install for the time being until I resolved the issue. I have also tried this with Poetry but had the same issue and I couldn't find any way to sort this via manually setting PYO3_PYTHON or using PYO3_CONFIG_FILE
I repeatedly ran into the issue of getting ModuleNotFoundError when importing third party dependencies in my venv so printing some debug information to the console as so
I get
It is at least partially respecting my venv as it's using Python 3.11 rather than 3.12 when I try to run via
poetry run
but notably seems to be pointing to the wrong site-packages.How can I point PyO3 to the right place?
Beta Was this translation helpful? Give feedback.
All reactions