Issue with pip Installation on My Laptop
Sujet : Issue with pip Installation on My Laptop
De : liznashah40 (at) *nospam* gmail.com (Lizna Shah)
Groupes : comp.lang.pythonDate : 26. Jul 2024, 13:25:48
Autres entêtes
Message-ID : <mailman.40.1722029862.2981.python-list@python.org>
References : 1
Hello,
I am experiencing a problem with pip not being installed on my laptop and
would appreciate any assistance you can provide.
Here are the details of my issue: -
Operating System: Windows
Python Version: Python 3.10.10
Steps I have already taken to try and resolve the issue:
1. Verified that Python is installed by running `python --version` (output:
[Python 3.10.10]).
2. Tried to install pip using the command `python -m ensurepip` and
received the following error:
Traceback (most recent call last):
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in
_run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in
_run_code
exec(code, run_globals)
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\ensurepip\__main__.py",
line 5, in <module>
sys.exit(ensurepip._main())
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\ensurepip\__init__.py",
line 287, in _main
return _bootstrap(
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\ensurepip\__init__.py",
line 203, in _bootstrap
return _run_pip([*args, *_PACKAGE_NAMES], additional_paths)
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\ensurepip\__init__.py",
line 104, in _run_pip
return subprocess.run(cmd, check=True).returncode
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 503,
in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 971,
in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\LIZNA
SHAH\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1440,
in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
OSError: [WinError 225] Operation did not complete successfully because the
file contains a virus or potentially unwanted software
3. Attempted to use `get-pip.py` script from the official website, but
encountered: ['get-pip.py' is not recognized as an internal or external
command,
operable program or batch file.].
Additional information: - I was able to use pip successfully with previous
versions of Python on this laptop.
I would be grateful for any guidance or troubleshooting steps you could
suggest to resolve this issue. Thank you.
Best regards,
Lizna Shah
Nepal
Date | Sujet | # | | Auteur |
26 Jul 24 | Issue with pip Installation on My Laptop | 1 | | Lizna Shah |
Haut de la page
Les messages affichés proviennent d'usenet.
NewsPortal