• B правой части каждого сообщения есть стрелки и . Не стесняйтесь оценивать ответы. Чтобы автору вопроса закрыть свой тикет, надо выбрать лучший ответ. Просто нажмите значок в правой части сообщения.

Не получается установить модули python

erh30hash

Member
12.04.2023
5
0
BIT
0
Здравствуйте, при попытке установить зависимости для скрипта Python командой pip install -r requirements.txt, Kali Linux
Получаю ошибку
Код:
pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fade~=0.0.9 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.0.9)
Requirement already satisfied: lxml~=4.9.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (4.9.2)
Requirement already satisfied: colorama~=0.4.5 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: fake-useragent~=1.1.3 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: aiohttp~=3.8.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (3.8.4)
Requirement already satisfied: urllib3~=1.26.10 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (1.26.12)
Collecting requests~=2.28.1
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: beautifulsoup4~=4.11.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 8)) (4.11.2)
Requirement already satisfied: pythonping~=1.1.4 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (1.1.4)
Requirement already satisfied: httpagentparser~=1.9.5 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 10)) (1.9.5)
Collecting cloudscraper~=1.2.69
  Using cached cloudscraper-1.2.69-py2.py3-none-any.whl (99 kB)
Requirement already satisfied: opentele~=1.15.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (1.15.1)
Requirement already satisfied: ua-parser~=0.16.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 13)) (0.16.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2022.12.7)
Requirement already satisfied: pyparsing>=2.4.7 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (3.0.9)
Requirement already satisfied: requests-toolbelt>=0.9.1 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (0.10.1)
Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (5.15.9)
Requirement already satisfied: telethon in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.28.2)
Requirement already satisfied: tgcrypto in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.2.5)
Requirement already satisfied: PyQt5-sip<13,>=12.11 in /usr/lib/python3/dist-packages (from pyqt5->opentele~=1.15.1->-r requirements.txt (line 12)) (12.11.1)
Requirement already satisfied: pyaes in /home/erh/.local/lib/python3.11/site-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (1.6.1)
Requirement already satisfied: rsa in /usr/lib/python3/dist-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (4.8)
Installing collected packages: requests, cloudscraper
  Attempting uninstall: requests
    Found existing installation: requests 2.27.1
    Uninstalling requests-2.27.1:
      Successfully uninstalled requests-2.27.1
  Attempting uninstall: cloudscraper
    Found existing installation: cloudscraper 1.2.67
    Uninstalling cloudscraper-1.2.67:
      Successfully uninstalled cloudscraper-1.2.67
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crackmapexec 5.4.0 requires aioconsole<0.4.0,>=0.3.3, but you have aioconsole 0.3.1 which is incompatible.
crackmapexec 5.4.0 requires minikerberos==0.3.3, but you have minikerberos 0.3.5 which is incompatible.
crackmapexec 5.4.0 requires neo4j<5.0.0,>=4.1.1, but you have neo4j 5.2.dev0 which is incompatible.
crackmapexec 5.4.0 requires pypsrp<0.8.0,>=0.7.0, but you have pypsrp 0.5.0 which is incompatible.                                                                            
crackmapexec 5.4.0 requires xmltodict<0.13.0,>=0.12.0, but you have xmltodict 0.13.0 which is incompatible.                                                                  
Successfully installed cloudscraper-1.2.69 requests-2.28.2
 

erh30hash

Member
12.04.2023
5
0
BIT
0
Как я понимаю python не обращается в каталог по умолчанию, и дублирует мне модули, как исправить и направить python в нужную директорию?
 

erh30hash

Member
12.04.2023
5
0
BIT
0
Если я пытаюсь установить те версии что мне указывает ошибка, по итогу я все равно получаю конфликт
 

Exited3n

Red Team
10.05.2022
712
257
BIT
619
Здравствуйте, при попытке установить зависимости для скрипта Python командой pip install -r requirements.txt, Kali Linux
Получаю ошибку
Код:
pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fade~=0.0.9 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.0.9)
Requirement already satisfied: lxml~=4.9.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (4.9.2)
Requirement already satisfied: colorama~=0.4.5 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: fake-useragent~=1.1.3 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: aiohttp~=3.8.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (3.8.4)
Requirement already satisfied: urllib3~=1.26.10 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (1.26.12)
Collecting requests~=2.28.1
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: beautifulsoup4~=4.11.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 8)) (4.11.2)
Requirement already satisfied: pythonping~=1.1.4 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (1.1.4)
Requirement already satisfied: httpagentparser~=1.9.5 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 10)) (1.9.5)
Collecting cloudscraper~=1.2.69
  Using cached cloudscraper-1.2.69-py2.py3-none-any.whl (99 kB)
Requirement already satisfied: opentele~=1.15.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (1.15.1)
Requirement already satisfied: ua-parser~=0.16.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 13)) (0.16.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2022.12.7)
Requirement already satisfied: pyparsing>=2.4.7 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (3.0.9)
Requirement already satisfied: requests-toolbelt>=0.9.1 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (0.10.1)
Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (5.15.9)
Requirement already satisfied: telethon in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.28.2)
Requirement already satisfied: tgcrypto in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.2.5)
Requirement already satisfied: PyQt5-sip<13,>=12.11 in /usr/lib/python3/dist-packages (from pyqt5->opentele~=1.15.1->-r requirements.txt (line 12)) (12.11.1)
Requirement already satisfied: pyaes in /home/erh/.local/lib/python3.11/site-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (1.6.1)
Requirement already satisfied: rsa in /usr/lib/python3/dist-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (4.8)
Installing collected packages: requests, cloudscraper
  Attempting uninstall: requests
    Found existing installation: requests 2.27.1
    Uninstalling requests-2.27.1:
      Successfully uninstalled requests-2.27.1
  Attempting uninstall: cloudscraper
    Found existing installation: cloudscraper 1.2.67
    Uninstalling cloudscraper-1.2.67:
      Successfully uninstalled cloudscraper-1.2.67
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crackmapexec 5.4.0 requires aioconsole<0.4.0,>=0.3.3, but you have aioconsole 0.3.1 which is incompatible.
crackmapexec 5.4.0 requires minikerberos==0.3.3, but you have minikerberos 0.3.5 which is incompatible.
crackmapexec 5.4.0 requires neo4j<5.0.0,>=4.1.1, but you have neo4j 5.2.dev0 which is incompatible.
crackmapexec 5.4.0 requires pypsrp<0.8.0,>=0.7.0, but you have pypsrp 0.5.0 which is incompatible.                                                                           
crackmapexec 5.4.0 requires xmltodict<0.13.0,>=0.12.0, but you have xmltodict 0.13.0 which is incompatible.                                                                 
Successfully installed cloudscraper-1.2.69 requests-2.28.2
pip install -r requirements.txt
Так ставить, сломаешь все остальные зависимости в Кали, crackmap работать перестанет и куча другого софта.
Юзай python venv.

Вот оф. рекомендашка:
Anything stand out? The two commands above would try and install a Python module, using Python’s package manager pip (Pip Installs Packages). The issue is, they can clash thus break the operating system’s package management ecosystem, apt (Advanced Package Tool)! What should you do differently then? Three options:

  • Use apt install python3-<package> (easy, simple & recommended)
  • Use venv (slightly more complicated but still recommended)
  • Use --break-system-packages (warning warning warning!)
 

erh30hash

Member
12.04.2023
5
0
BIT
0
pip install -r requirements.txt
Так ставить, сломаешь все остальные зависимости в Кали, crackmap работать перестанет и куча другого софта.
Юзай python venv.

Вот оф. рекомендашка:
сейчас мне как тогда исправить что уже сломал? Или проще переустановить Kali и научиться пользоваться venv?
 

D3L1F3R

Red Team
20.02.2022
343
116
BIT
610
Здравствуйте, при попытке установить зависимости для скрипта Python командой pip install -r requirements.txt, Kali Linux
Получаю ошибку
Код:
pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: fade~=0.0.9 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (0.0.9)
Requirement already satisfied: lxml~=4.9.2 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 2)) (4.9.2)
Requirement already satisfied: colorama~=0.4.5 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: fake-useragent~=1.1.3 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 4)) (1.1.3)
Requirement already satisfied: aiohttp~=3.8.4 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 5)) (3.8.4)
Requirement already satisfied: urllib3~=1.26.10 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 6)) (1.26.12)
Collecting requests~=2.28.1
  Using cached requests-2.28.2-py3-none-any.whl (62 kB)
Requirement already satisfied: beautifulsoup4~=4.11.1 in /usr/lib/python3/dist-packages (from -r requirements.txt (line 8)) (4.11.2)
Requirement already satisfied: pythonping~=1.1.4 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 9)) (1.1.4)
Requirement already satisfied: httpagentparser~=1.9.5 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 10)) (1.9.5)
Collecting cloudscraper~=1.2.69
  Using cached cloudscraper-1.2.69-py2.py3-none-any.whl (99 kB)
Requirement already satisfied: opentele~=1.15.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 12)) (1.15.1)
Requirement already satisfied: ua-parser~=0.16.1 in /home/erh/.local/lib/python3.11/site-packages (from -r requirements.txt (line 13)) (0.16.1)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2.0.12)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (3.3)
Requirement already satisfied: certifi>=2017.4.17 in /home/erh/.local/lib/python3.11/site-packages (from requests~=2.28.1->-r requirements.txt (line 7)) (2022.12.7)
Requirement already satisfied: pyparsing>=2.4.7 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (3.0.9)
Requirement already satisfied: requests-toolbelt>=0.9.1 in /usr/lib/python3/dist-packages (from cloudscraper~=1.2.69->-r requirements.txt (line 11)) (0.10.1)
Requirement already satisfied: pyqt5 in /usr/lib/python3/dist-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (5.15.9)
Requirement already satisfied: telethon in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.28.2)
Requirement already satisfied: tgcrypto in /home/erh/.local/lib/python3.11/site-packages (from opentele~=1.15.1->-r requirements.txt (line 12)) (1.2.5)
Requirement already satisfied: PyQt5-sip<13,>=12.11 in /usr/lib/python3/dist-packages (from pyqt5->opentele~=1.15.1->-r requirements.txt (line 12)) (12.11.1)
Requirement already satisfied: pyaes in /home/erh/.local/lib/python3.11/site-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (1.6.1)
Requirement already satisfied: rsa in /usr/lib/python3/dist-packages (from telethon->opentele~=1.15.1->-r requirements.txt (line 12)) (4.8)
Installing collected packages: requests, cloudscraper
  Attempting uninstall: requests
    Found existing installation: requests 2.27.1
    Uninstalling requests-2.27.1:
      Successfully uninstalled requests-2.27.1
  Attempting uninstall: cloudscraper
    Found existing installation: cloudscraper 1.2.67
    Uninstalling cloudscraper-1.2.67:
      Successfully uninstalled cloudscraper-1.2.67
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
crackmapexec 5.4.0 requires aioconsole<0.4.0,>=0.3.3, but you have aioconsole 0.3.1 which is incompatible.
crackmapexec 5.4.0 requires minikerberos==0.3.3, but you have minikerberos 0.3.5 which is incompatible.
crackmapexec 5.4.0 requires neo4j<5.0.0,>=4.1.1, but you have neo4j 5.2.dev0 which is incompatible.
crackmapexec 5.4.0 requires pypsrp<0.8.0,>=0.7.0, but you have pypsrp 0.5.0 which is incompatible.                                                                           
crackmapexec 5.4.0 requires xmltodict<0.13.0,>=0.12.0, but you have xmltodict 0.13.0 which is incompatible.                                                                 
Successfully installed cloudscraper-1.2.69 requests-2.28.2
python3 -m pip install --upgrade pip
pip3 install <ПАКЕТ> --use-feature=2020-resolver
Попробуйте
 

specical bat

Well-known member
17.10.2018
46
-1
BIT
0
У меня была такая проблема, при написании кода на python. Не получалось установить модули. Нужно правильно создать виртуальное окружение, без него не установятся модули. Или у Вас другая ситуация?
 
Мы в соцсетях:

Обучение наступательной кибербезопасности в игровой форме. Начать игру!