```bash # lists all libraries and their versions pip freeze pip show <package name> pip show GitPython ``` # pip3 troubleshoot Kali Linux follows PEP 668 to prevent system-wide Python package installations using `pip`. ### Option 1: Use `pipx` install pipx ```bash sudo apt update sudo apt install pipx pipx ensurepath ``` use pipx to install whatever ```bash pipx install <whatever> ``` 그 다음 그냥 사용하면 됨 ```bash # uploadserver를 예시로 # ensurepath 하고 난 후 uploadserver # or pipx run uploadserver # or ~/.local/bin/uploadserver # To make that easier in the future, ensure ~/.local/bin is in your $PATH echo 'export PATH="$home/.local/bin:$PATH"' >> ~/.bashrc source ~/.bashrc # if you are using zsh just replace bash with zsh ``` ### Option 2: Use a virtual environment ```bash # 1. Create a virtual environment python3 -m venv venv # 2. Activate it source venv/bin/activate # 3. install the package pip3 install <whatever> pip3 install -r requirements.txt #4. Run it while the venv is activated python3 <whatever> #5. deactivate deactivate ```