-
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
pip linter install fails #808
Comments
Try setting |
Yes. That worked. Pip successfully installed mypy to my virtual environment, as expected. But now I'm confused about why it worked. But perhaps I don't understand the logic behind it yet, so I'll just leave it at that. Thanks so much. |
It is just a workaround. Working on the actual fix for next update. |
Got it. I'm fine with closing this issue. Thanks again. |
I'll close it with the real fix :-) |
Hello Friends
This is my first comment on github if I apologies previously if I have some styling and grammatical problem |
For @farid220 solution you need to change default python to 3.x in the bottom left of vsCode |
@farid220 This method is also valid for python2 |
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 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
--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 panelOutput from
Console window
(Help->Developer Tools menu)The text was updated successfully, but these errors were encountered: