-
Notifications
You must be signed in to change notification settings - Fork 433
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
[BUG] dotenv cli not used windows venv if it activated #373
Comments
Found interesting issue in CPython about it Have you any ideas how to solve this? I have idea with one crutch:
Somewhere before https://github.com/theskumar/python-dotenv/blob/master/src/dotenv/cli.py#L153 But I didn't test this yet Also we can add check |
UPD: crutch is working! |
Any chance the fix above can be merged? (assuming it works) |
Any fix for this? Still running into this issue in windows |
Same issue here. |
You can do something like that (assuming cmd.exe)
Current behavior is just Python behavior. Compare
and
Also, see the warning in Popen documentation https://docs.python.org/3/library/subprocess.html#subprocess.Popen Following the suggestions in the warning I created a pull request #508 . I believe resolving against the PATH is what most of the users expect.
Most likely you need to uninstall the old version first as the version string is still the same and pip might not apply the changes because of that. |
I use vscode on windows
Command:
Expected:
\path\to\venv\Scripts\python.exe
Real:
\path\to\system\python.exe
If needed more info - I will try to provide it ASAP.
Cc: @scad89 help to find this issue
System:
Windows 10.
python -V
Python 3.8.5
The text was updated successfully, but these errors were encountered: