Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install error #635

Open
EinsPommes opened this issue Oct 15, 2024 · 2 comments
Open

install error #635

EinsPommes opened this issue Oct 15, 2024 · 2 comments

Comments

@EinsPommes
Copy link

hello i have the error since yesterday it was already installed but it does not work anymore

sgpt
Traceback (most recent call last):
  File "/home/kali/.local/bin/sgpt", line 5, in <module>
    from sgpt import cli
ModuleNotFoundError: No module named 'sgpt'

pip install shell-gpt
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
    
    If you wish to install a non-Kali-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have pypy3-venv installed.
    
    If you wish to install a non-Kali-packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.
    
    For more information, refer to the following:
    * https://www.kali.org/blog/python-externally-managed/
    * /usr/share/doc/python3.12/README.venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

@zx-ma
Copy link

zx-ma commented Oct 16, 2024

i just met a similar issue on arch linux. what i did is just use pipx to install shell-gpt and it works. (it seems pep 668 is preventing u from breaking system env)

@EinsPommes
Copy link
Author

Ok thx but in a completely normal shell? So just do pipx?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants