-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
Look in wrong path to find python interpreter when using maturin develop #1108
Comments
And I'm using virtualenv,maybe you're using another tool? |
What version of maturin are you using? Your venv looks a little odd to me, usually on Windows, activation scripts are in |
I'm also using virtualenv, quoting https://virtualenv.pypa.io/en/latest/user_guide.html#activators
|
maturin 0.13.2 |
So you are running in msys2/mingw64 shell instead of normal Windows shell? Then I guess that's the issue. |
No,I only install packages using msys2,and run them in nushell. |
Did you install Python and virtualenv via msys2? It might have odd behavior this way because it thinks it's running in POSIX? If so can you try install Python and virtualenv from official channels? |
The offending code is Lines 570 to 575 in 4e533f9
Because your venv does not have a |
I think why this happens because both archlinux and msys2 are using pacman as its package manager,and they share the same pack script. |
That causes the pack style different from the offical windows python's. |
@ArchGuyWu Can you try #1112? |
I think you can install it via |
Ok,I'll try it. |
@messense It works,thanks. |
Bug Description
maturin looks in $VENV_ROOT instead of $VENV_ROOT\bin to find python interpreter caused
maturin develop
to failYour Python version (
python -V
)Python 3.10.7
Your pip version (
pip -V
)pip 22.2.2
What bindings you're using
pyo3
Does
cargo build
work?If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash
/
)?Steps to Reproduce
virtualenv $VENV_NAME
maturin develop
, the command will fail due to maturin looks in $VENV_ROOT instead of $VENV_ROOT\bin to find python interpreterThe text was updated successfully, but these errors were encountered: