I am using opensuse and whenever I tried to install a python package i got an error, how…
Jump to turn (10)
- 1I am using opensuse and whenever I tried to install a python package i got an er
- 2what is pipx and should I use it?
- 3If I install a package with pipx, how does my python installation know about thi
- 4does conda manages virtual environment created by python3.11 -m venv path/to/ven
- 5so which one is better to use, pipx or conda?
- 6if I pick conda does it have a UI?
- 7should I create virtual environments project wide or system wide in an user home
- 8I tried creating it in my project and I got a weird error: python3.11 -m venv ./
- 9./venv/bin/python3.11 -m ensurepip Looking in links: /tmp/tmpur6po6hq Requiremen
- 10it did work, how to activate it?
- User
I am using opensuse and whenever I tried to install a python package i got an error, how I I deal with this:
pip install discord.py error: externally-managed-environment
× This environment is externally managed ╰─> To install Python packages system-wide, try zypper install python311-xyz, where xyz is the package you are trying to install.
codeIf you wish to install a non-rpm packaged Python package, create a virtual environment using python3.11 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. If you wish to install a non-rpm packaged Python application, it may be easiest to use `pipx install xyz`, which will manage a virtual environment for you. Install pipx via `zypper install python311-pipx` .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.