Helli I have problem upgrading pip. And afterward I cant even install any package in my interpreter. Here is the error Can you help me: Error: Traceback (most recent call last): File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\packaging_tool.py", line 73, in run_pip runpy.run_module(module_name, run_name='__main__', alter_sys=True) File "C:\Users\ZSO\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 205, in run_module return _run_module_code(code, init_globals, run_name, mod_spec) File "C:\Users\ZSO\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 96, in _run_module_code mod_name, mod_spec, pkg_name, script_name) File "C:\Users\ZSO\AppData\Local\Programs\Python\Python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\__main__.py", line 19, in <module> sys.exit(_main()) File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\cli\main.py", line 73, in main command = create_command(cmd_name, isolated=("--isolated" in cmd_args)) File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\commands\__init__.py", line 96, in create_command module = importlib.import_module(module_path) File "C:\Users\ZSO\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 728, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\commands\install.py", line 24, in <module> from pip._internal.cli.req_command import RequirementCommand File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\cli\req_command.py", line 20, in <module> from pip._internal.operations.prepare import RequirementPreparer File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\operations\prepare.py", line 16, in <module> from pip._internal.distributions import ( File "C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\distributions\__init__.py", line 1, in <module> from pip._internal.distributions.source import SourceDistribution ImportError: cannot import name 'SourceDistribution' from 'pip._internal.distributions.source' (C:\Users\ZSO\PycharmProjects\111\venv\lib\site-packages\pip\_internal\distributions\source\__init__.py) Best regards Zahra
participants (1)
-
Nourbakhsh Soltani, Zahrasadat