-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Install ERROR: Cannot set --home and --prefix together #11129
Comments
Hi - getting this same message when I try to use pip for certain libraries in a 'dev container' within Visual Studio Code. I'm not supplying either --home or --prefix options. |
It was an issue with pip configs. I fixed the issue after removing all pip
configs.
…On Thu, 23 Jun 2022, 8:13 pm oneextrafact, ***@***.***> wrote:
Hi - getting this same message when I try to use pip for certain libraries
in a 'dev container' within Visual Studio Code. I'm not supplying either
--home or --prefix options.
—
Reply to this email directly, view it on GitHub
<#11129 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWDZDHAFTXBJ2E6XKY3A223VQR5I3ANCNFSM5WKP5LIQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hmm interesting. I had to change my devcontainer.json to use sudo pip3, which I guess gave it permission to write to the user directory. |
I had this issue too. To solve it, you could avoid using 'pip', which installs packages globally. An option is to use 'conda' to install packages to the current env. This perfectly solved my problem, which I think was due to the conflict between global env and current env. |
I'm facing same isuue in Ubuntu 22.04. Can someone suggest some workarounds to this ? |
Please paste the output of |
Hi @pradyunsg ! thank you for your concern here is the information you wanted, I am sorry for the delay in my reply! :)
|
Having As it stands, it looks like that |
所以说要怎么解决这个问题啊,有答案吗? |
pip config debug, find the folder |
Description
I am getting the error even I am not using --home or --prefix while installing a git repo!
Expected behavior
A successful installation! Like I can install on my other pc via pip.
pip version
22.0.4
Python version
3.9.12
OS
Windows
How to Reproduce
Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: