-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot deactivate venv in terminal while venv/bin/python is interpreter #23449
Comments
I have the same problem It almost make crazy. |
although |
I had same issue. First of all you need to delete virtual environment (./venv directory) on your path, and then try deactivate command once again. |
I don't know the underlying reason for the bug, but changing the permissions of the deactivate script worked for me: |
I thank! |
I can confirm that the permissions solution works |
#22921 removed executable bits: ```diff diff --git a/pythonFiles/deactivate/bash/deactivate b/python_files/deactivate/bash/deactivate old mode 100755 new mode 100644 similarity index 100% rename from pythonFiles/deactivate/bash/deactivate rename to python_files/deactivate/bash/deactivate ``` https://github.com/microsoft/vscode-python/pull/22921/files#diff-796809259ce3b33f54a33371e898048faf2f7f912cd1bbe11059feb40a63a58d Set them back. Fixes #23449 and #23195
#22921 removed executable bits: ```diff diff --git a/pythonFiles/deactivate/bash/deactivate b/python_files/deactivate/bash/deactivate old mode 100755 new mode 100644 similarity index 100% rename from pythonFiles/deactivate/bash/deactivate rename to python_files/deactivate/bash/deactivate ``` https://github.com/microsoft/vscode-python/pull/22921/files#diff-796809259ce3b33f54a33371e898048faf2f7f912cd1bbe11059feb40a63a58d Set them back. Fixes #23449 and #23195
microsoft#22921 removed executable bits: ```diff diff --git a/pythonFiles/deactivate/bash/deactivate b/python_files/deactivate/bash/deactivate old mode 100755 new mode 100644 similarity index 100% rename from pythonFiles/deactivate/bash/deactivate rename to python_files/deactivate/bash/deactivate ``` https://github.com/microsoft/vscode-python/pull/22921/files#diff-796809259ce3b33f54a33371e898048faf2f7f912cd1bbe11059feb40a63a58d Set them back. Fixes microsoft#23449 and microsoft#23195
Type: Bug
python -m venv venv
in the root directory.which python
will show the local venv/bin/python path.deactivate
results in an error "/home/username/.vscode/extensions/ms-python.python-2024.6.0/python_files/deactivate/bash/deactivate: Permission denied"Being able to deactivate the venv is a necessary feature for development.
Extension version: 2024.6.0
VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z)
OS version: Linux x64 6.5.0-35-generic snap
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: