Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1
Python Version: 3.6.4 (Homebrew & virtualenvwrapper)
OS and version: MacOS 10.13.3
Actual behavior
Using Cmd-Shift-P, I select for example 'mypy' which is not installed in my virtual environment. When I click Install, python3 -m pip install -U mypy --user fails, with message Can not perform a '--user' install. User site-packages are not visible in this virtualenv.
Expected behavior
Expect mypy to be installed in my virtual environment's site-packages directory.
Steps to reproduce:
- Set up virtual environment with virtualenvwrapper.
- Open vscode from the terminal with the virtual env already activated (workon...).
- Rest as described in Actual behavior.
I see that --user is hard-coded in pipInstaller.ts (which I suspect is doing the installing). Is there a way to override that setting? Or am I getting something wrong?
In the end, I was able to manually install the linter to be able to move forward, and that seems to be working correctly. Would be nice to be able to depend on the install procedure though.
Thanks.
Logs
Output from Python output panel
Output from Console window (Help->Developer Tools menu)
Environment data
VS Code version: 1.20.1
Python Extension version: 2018.1
Python Version: 3.6.4 (Homebrew & virtualenvwrapper)
OS and version: MacOS 10.13.3
Actual behavior
Using Cmd-Shift-P, I select for example 'mypy' which is not installed in my virtual environment. When I click Install,
python3 -m pip install -U mypy --userfails, with messageCan not perform a '--user' install. User site-packages are not visible in this virtualenv.Expected behavior
Expect mypy to be installed in my virtual environment's site-packages directory.
Steps to reproduce:
I see that
--useris hard-coded in pipInstaller.ts (which I suspect is doing the installing). Is there a way to override that setting? Or am I getting something wrong?In the end, I was able to manually install the linter to be able to move forward, and that seems to be working correctly. Would be nice to be able to depend on the install procedure though.
Thanks.
Logs
Output from
Pythonoutput panelOutput from
Console window(Help->Developer Tools menu)