Пишу в cmd 'python' выдает его версию, а пишу 'pip' выдает такой трассер:
C:\Users\altin>py
Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
C:\Users\altin>pip
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Scripts\pip.exe\__main__.py", line 4, in <module>
Example: python -m django check
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in <module>
from pip._internal.build_env import get_runnable_pip
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\build_env.py", line 19, in <module>
from pip._internal.cli.spinners import open_spinner
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\spinners.py", line 9, in <module>
from pip._internal.utils.logging import get_indentation
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\utils\logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\utils\misc.py", line 42, in <module>
from pip._internal.exceptions import CommandError, ExternallyManagedEnvironment
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\exceptions.py", line 18, in <module>
from pip._vendor.requests.models import Request, Response
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\requests\__init__.py", line 43, in <module>
from pip._vendor import urllib3
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\__init__.py", line 11, in <module>
from . import exceptions
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\exceptions.py", line 3, in <module>
from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 234, in create_module
return self.load_module(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 209, in load_module
mod = mod._resolve()
^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 118, in _resolve
return _import_module(self.mod)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 87, in _import_module
__import__(name)
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py", line 1, in <module>
from django.http.cookie import SimpleCookie, parse_cookie
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py", line 1, in <module>
from django.http.cookie import SimpleCookie, parse_cookie
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\cookie.py", line 1, in <module>
from http import cookies
ImportError: cannot import name 'cookies' from partially initialized module 'http' (most likely due to a circular import) (C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py)
C:\Users\altin>py -m pip --version
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\__main__.py", line 29, in <module>
from pip._internal.cli.main import main as _main
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\main_parser.py", line 9, in <module>
from pip._internal.build_env import get_runnable_pip
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\build_env.py", line 19, in <module>
from pip._internal.cli.spinners import open_spinner
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\spinners.py", line 9, in <module>
from pip._internal.utils.logging import get_indentation
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\utils\logging.py", line 29, in <module>
from pip._internal.utils.misc import ensure_dir
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\utils\misc.py", line 42, in <module>
from pip._internal.exceptions import CommandError, ExternallyManagedEnvironment
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\exceptions.py", line 18, in <module>
from pip._vendor.requests.models import Request, Response
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\requests\__init__.py", line 43, in <module>
from pip._vendor import urllib3
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\__init__.py", line 11, in <module>
from . import exceptions
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\exceptions.py", line 3, in <module>
from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 234, in create_module
return self.load_module(spec.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 209, in load_module
mod = mod._resolve()
^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 118, in _resolve
return _import_module(self.mod)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\packages\six.py", line 87, in _import_module
__import__(name)
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py", line 1, in <module>
from django.http.cookie import SimpleCookie, parse_cookie
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py", line 1, in <module>
from django.http.cookie import SimpleCookie, parse_cookie
File "C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\cookie.py", line 1, in <module>
from http import cookies
ImportError: cannot import name 'cookies' from partially initialized module 'http' (most likely due to a circular import) (C:\Users\altin\AppData\Local\Programs\Python\Python311\Lib\site-packages\django\http\__init__.py)
так же когда пытаюсь переустановить 'pip' выдает вот это:
C:\Users\altin>python -m pip install --upgrade --force-reinstall pip
C:\Program Files\Python310\python.exe: No module named pip
попробовал установить его через скрипт:
C:\Users\altin>curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2513k 100 2513k 0 0 937k 0 0:00:02 0:00:02 --:--:-- 937k
но при попытке установки опять большой трассер:
"начало трассера"
C:\Users\altin>python get-pip.py
Traceback (most recent call last):
File "C:\Users\altin\get-pip.py", line 32267, in <module>
main()
File "C:\Users\altin\get-pip.py", line 135, in main
bootstrap(tmpdir=tmpdir)
File "C:\Users\altin\get-pip.py", line 111, in bootstrap
monkeypatch_for_cert(tmpdir)
File "C:\Users\altin\get-pip.py", line 92, in monkeypatch_for_cert
from pip._internal.commands.install import InstallCommand
File "C:\Users\altin\AppData\Local\Temp\tmpe77d1mco\pip.zip\pip\_internal\commands\__init__.py", line 9, in <module>
"конец"
ModuleNotFoundError: No module named 'django'
P.S. папка 'Scripts' при установке python пустая