Skip to content

Why I can't install pip #7369

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

Closed
choyongjun2000 opened this issue Nov 16, 2019 · 5 comments
Closed

Why I can't install pip #7369

choyongjun2000 opened this issue Nov 16, 2019 · 5 comments
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support

Comments

@choyongjun2000
Copy link

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\Program Files (x86)\Python38-32\Lib\site-packages\pip\init.py'
Consider using the --user option or check the permissions.

@ghost ghost added the S: needs triage Issues/PRs that need to be triaged label Nov 16, 2019
@chrahunt
Copy link
Member

Hello! This is normal if you installed Python for all users on Windows. When you run pip install just pass the --user flag, like pip install --user followed by the package you're trying to install.

@chrahunt chrahunt added S: awaiting response Waiting for a response/more information type: support User Support labels Nov 17, 2019
@ghost ghost removed the S: needs triage Issues/PRs that need to be triaged label Nov 17, 2019
@choyongjun2000
Copy link
Author

C:\Users\User>pip --version
Traceback (most recent call last):
File "c:\program files (x86)\python38-32\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\program files (x86)\python38-32\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Program Files (x86)\Python38-32\Scripts\pip.exe_main
.py", line 9, in
TypeError: 'module' object is not callable

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Nov 17, 2019
@RonnyPfannschmidt
Copy link
Contributor

so the user installed pip is incompatible wrt entry pints with the system instaled pip and now things have gone wrong

python -m pip miht still work, as a starting point it might help to uninstall/remove the user-installed pip
i am not familiar enough with the windows platform to provide more help

@chrahunt
Copy link
Member

Hi @choyongjun2000! Like @RonnyPfannschmidt said: use python -m pip. That should hopefully fix your problem.

@chrahunt chrahunt added the S: awaiting response Waiting for a response/more information label Nov 17, 2019
@no-response
Copy link

no-response bot commented Dec 2, 2019

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Dec 2, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jan 1, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jan 1, 2020
@pradyunsg pradyunsg removed the S: awaiting response Waiting for a response/more information label Mar 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants