-
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
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv. #14327
Comments
I can repro this. |
As described in vscode#43347 setting |
Pip can install software in three different ways:
I don't think Virtualenv is great, and disk space is cheap. |
It can install in two ways: global or at the user level. It's just that virtualenvs put you in a new root for python, so you end up installing globally. However, it would be nice if it was detected that the user was using a virtualenv, with modifiable flags, so we could change the default value of that parameter depending on the case. |
#14327 One quick fix is :
|
worked perfectly for me, thanks! |
'Great! |
Great! It works properly. thanks! |
This also worked for me. Thanks a lot! |
same problem in my vscode 1.47.3,pylance。 In virtualenv, don't use "pip install xxx --user" |
It didn't work for me! |
this work for me. . |
For me, it was the python version issue. I was using using a version not supported by Pycaret yet. I created a clean new virtual env using supported Pycaret and it worked right away |
Just run cmd as administrator |
It works perfect for me! Thanks!! |
How do you freeze it after the install?
The freeze is not picking up the packages from requirements.txt |
@guettli Using |
thank you for trying to help. In this case I have a conrete goal. At the top of this issue:
I want packages to get installed in my virtualenv, not at root-level via sudo. |
Environment data
Version: 1.49.3
Commit: 2af051012b66169dde0c4dfae3f5ef48f787ff69
Date: 2020-10-02T17:56:11.027Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.4.0-48-generic snap
Steps to reproduce:
Then in vscode I get asked if I would like to install pylint. I click on "yes".
The the error happens (this code was created/executed by vscode):
Expected behaviour
Since the interpreter is in a virtualenv, it would make sense to avoid
--user
.The text was updated successfully, but these errors were encountered: