Skip to content
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

Defaulting to user installation because normal site-packages is not writeable #10831

Closed
1 task done
joker1024567 opened this issue Jan 26, 2022 · 5 comments
Closed
1 task done
Labels
type: support User Support

Comments

@joker1024567
Copy link

Description

These two errors are always prompted
001:
WARNING: The script f2py.exe is installed in 'C:\Users\wucha\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
002:
Defaulting to user installation because normal site-packages is not writeable

Expected behavior

No response

pip version

21.3.1

Python version

3.10.2

OS

WIN 10

How to Reproduce

pip install numpy or other

I don't know why this error occurs, but there is no good solution online

Output

001:
 WARNING: The script f2py.exe is installed in 'C:\Users\wucha\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
002:
 Defaulting to user installation because normal site-packages is not writeable
003:
 C:\Users\wucha>pip install numpy
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy
  Using cached numpy-1.22.1-cp310-cp310-win_amd64.whl (14.7 MB)
Installing collected packages: numpy
  WARNING: The script f2py.exe is installed in 'C:\Users\wucha\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.22.1

Code of Conduct

@joker1024567 joker1024567 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jan 26, 2022
@joker1024567
Copy link
Author

C:\Users\wucha>where python
C:\Program Files\Python310\python.exe
C:\Users\wucha\AppData\Local\Microsoft\WindowsApps\python.exe

@DiddiLeija
Copy link
Member

WARNING: The script f2py.exe is installed in 'C:\Users\wucha\AppData\Roaming\Python\Python310\Scripts' which is not on PATH.
 Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

This is because C:\Users\wucha\AppData\Roaming\Python\Python310\Scripts is not on the environment variable PATH. You will have to add it, that's out of pip control.

Defaulting to user installation because normal site-packages is not writeable

That's another issue, out of pip control.

I think you're not asking in the right place.

@DiddiLeija DiddiLeija added type: support User Support and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jan 26, 2022
@joker1024567
Copy link
Author

C:\Users\wucha\AppData\Roaming\Python\Python310
image

C:\Program Files\Python310
image

@joker1024567
Copy link
Author

C:\Users\wucha>pip install numpy
Defaulting to user installation because normal site-packages is not writeable
Collecting numpy
Using cached numpy-1.22.1-cp310-cp310-win_amd64.whl (14.7 MB)
Installing collected packages: numpy
Successfully installed numpy-1.22.1

@DiddiLeija
Copy link
Member

Again, this is not a bug. You only can't access to your system site-packages, so pip will install your packages into your user site-packages. Also, how did you install Python?

Anyway, this is not a pip bug. You may want to ask in a help forum, or mybe in the Python Discord.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

2 participants