-
Notifications
You must be signed in to change notification settings - Fork 69
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
Unable work in vene #56
Comments
Is this normal? |
This is caused by wrong Python interpreter version selected. Lets say you have made a virtual environment of Python and install PyGetWindow or any other library/package but forgot to later on change the interpreter the terminal is running then the Python file that is being executed will not run according to that virtual environment. You can simply run this command to see the path of the interpreter your terminal is running: Get-Command python |
It's not like that. I didn't forget to run activate.bat to start venv, and besides pygetwindow, all other packs are running normally |
Hmm, give me a moment to examine this in detail |
There are multiple factors causing this if its not the above, first either the terminal you are using isn't using the virtual environment or either isn't configured right. Second depends on what IDE you are using, if you are using Visual Studio Code then I will suggest you to once change the virtual environment using the Another solution you can try is try running this command in the terminal: python which will open the terminal integrated python shell, then you can run this command: import sys
print(sys.executable) this will show you the path to the interpreter you are using, just to let you know the issue isn't regarding |
Already installed pygetwindow in venv
But Python reported such an error
If it doesn't run in Venv, there won't be any problem
The text was updated successfully, but these errors were encountered: