@ruslan2570

Как исправить ошибку в установки модуля на python3?

при установке модуля requests выдаёт ошибку
The directory '/home/ruslan/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.                                                                                                                                       
The directory '/home/ruslan/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.                                                                                                                                              
Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests)
Requirement already satisfied: idna<2.9,>=2.5 in ./.local/lib/python3.6/site-packages (from requests)
Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests)
если выполнить без sudo то получится другая ошибка
Traceback (most recent call last):                                                                                                                                                              
  File "/home/ruslan/.local/bin/pip3", line 7, in <module>                                                                                                                                      
    from pip._internal import main                                                                                                                                                              
ModuleNotFoundError: No module named 'pip._internal'
как исправить?
  • Вопрос задан
  • 3189 просмотров
Решения вопроса 1
@etaliorum
Платон мне друг, но истины не надо
Ошибка говорит что прав нету на папку

UPD0: Попробуй.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы