![]() In this case the installation is contained inside the. venv/bin/activate, then pip install -r requirements.txt. In this case there's no weird mixing of package managers: you installed python3 using apt, you're installing your dependencies using apt: no surprises. It would work if you have only a few requirements in the file and can do it manually for each, like apt install python3-xxx python3-yyy python3-zzz. It does not cleanly apply for you as you're having a requirements.txt, not a single dependency. Your distribution told you three solutions in the message, but only the 2nd one applies cleanly to your use case: PEP 668 is a way for distributions to explicitly tell users to avoid falling is this pit. Mixing two package managers ( apt and pip here) is always a bad idea and the source of many issues. Long story: Your distribution is trying to protect you against mixing apt provided packages and pip provided packages. Python3 -m pip install -r requirements.txt This is due to your distribution adopting PEP 668 – Marking Python base environments as “externally managed”. ![]() ![]() I wish someone would explain to me what to do and how to solve it Hint: See PEP 668 for the detailed specification. You can override this, at the risk of breaking your Python installation or OS, by passing -break-system-packages. Note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. See /usr/share/doc/python3.11/README.venv for more information. It may be easiest to use pipx install xyz, which will manage a If you wish to install a non-Debian packaged Python application, Then use path/to/venv/bin/python and path/to/venv/bin/pip. If you wish to install a non-Debian-packaged Python package,Ĭreate a virtual environment using python3 -m venv path/to/venv. ![]() Python3-xyz, where xyz is the package you are trying to ![]() ╰─> To install Python packages system-wide, try apt install ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |