سلام وقتتون بخیر
من زمانی که پکیج requests رو در ترمینال ران میکنم با ارور مواجهه میشم.حتی از VPN هم استفاده کردم ولی باز این ارور رو دارم.لطف میکنید راهکاری ارائه بدید.با تشکر
سلام خدمت شما دوست عزیز
لطفا متن خطا رو ارسال کنین دوست من
سلام و احترام
متن ارور به شرح زیر است:
ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\commands\install.py", line 326, in run
session = self.get_default_session(options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\cli\req_command.py", line 98, in get_default_session
self._session = self.enter_context(self._build_session(options))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\cli\req_command.py", line 125, in _build_session
session = PipSession(
^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\network\session.py", line 343, in __init__
self.headers["User-Agent"] = user_agent()
^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\network\session.py", line 175, in user_agent
setuptools_dist = get_default_environment().get_distribution("setuptools")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\importlib\_envs.py", line 188, in get_distribution
return next(matches, None)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\importlib\_envs.py", line 183, in <genexpr>
matches = (
^
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\base.py", line 612, in iter_all_distributions
for dist in self._iter_distributions():
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\importlib\_envs.py", line 176, in _iter_distributions
for dist in finder.find_eggs(location):
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\importlib\_envs.py", line 146, in find_eggs
yield from self._find_eggs_in_zip(location)
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_internal
\metadata\importlib\_envs.py", line 123, in _find_eggs_in_zip
from pip._vendor.pkg_resources import find_eggs_in_zip
File "C:\Users\Asus\PycharmProjects\pythonProject1\venv\Lib\site-packages\pip\_vendor\p
kg_resources\__init__.py", line 2164, in <module>
register_finder(pkgutil.ImpImporter, find_on_path)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimport
er'?
این دستورات رو یک بار اجرا کنین :
python -m pip install --upgrade setuptools
pip install --upgrade setuptools
سلام مجدد
وقتتون بخیر
نه متاسفانه.با دو دستور فوق هم دقیقا همون خطا رو میده