vscode-python: Unable to automatically install library due to spaces in username when using Gitbash
Issue Type: Bug
When trying to install ‘rope’ to rename functions the command below is run which errors due to spaces in the username ‘firstname lastname’:
& i:/#Data/#Dev/Python/DuplicateFinder/venv-dup-finder/Scripts/python.exe c:\Users\firstname lastname\.vscode\extensions\ms-python.python-2020.4.74986\pythonFiles\pyvsc-run-isolated.py pip install -U rope
Extension version: 2020.4.74986 VS Code version: Code 1.44.2 (ff915844119ce9485abfe8aa9076ec76b5300ddd, 2020-04-16T16:33:57.013Z) OS version: Windows_NT ia32 10.0.18363
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (5 by maintainers)
My problem was that I was using git bash (windows) as the terminal and vscode doesn’t translate the backslashes.
That’s the root of the problem. After changing the default shell to CMD, everything works fine.
@ahaq0 I just executed the command manually with slashes in git bash (or with backslashes in the cmd), but you can just set cmd by default momentarily for this too.