Closed livingst76 closed 1 year ago
``I have tried downgrading pip to 22.3.1, but that didn't work either. It gives this error each time I try installing it in a system-wide environment: 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-Debian-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 python3-full installed.
If you wish to install a non-Debian 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.
See /usr/share/doc/python3.11/README.venv for more information.
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.
@livingst76 Can you try installing check50 again now and see if that works?
@rongxin-liu It's worked! I had to add the "--break-system-packages" flag to install it. I'm not sure that's safe either, but it's working now. Thank you.
Do you think it's safe to add that flag?
Normally you shouldn't need to add "--break-system-packages" to install check50/submit50 or any python packages.
This particular PyYAML issue was caused by a recent Cython release and installing the latest PyYAML should address the issue: https://github.com/yaml/pyyaml/issues/736
That worked just fine. Thank you.
Requirement already satisfied: pip in ./myenv/lib/python3.11/site-packages (23.1.2) Collecting pip Downloading pip-23.2.1-py3-none-any.whl (2.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 1.1 MB/s eta 0:00:00 Installing collected packages: pip Attempting uninstall: pip Found existing installation: pip 23.1.2 Uninstalling pip-23.1.2: Successfully uninstalled pip-23.1.2 Successfully installed pip-23.2.1 (myenv) livingst@LDT-B5400:~$ pip install submit50 Collecting submit50 Downloading submit50-3.1.1-py3-none-any.whl (19 kB) Collecting lib50<4,>=3 (from submit50) Downloading lib50-3.0.6-py3-none-any.whl (39 kB) Collecting requests>=2.19 (from submit50) Obtaining dependency information for requests>=2.19 from https://files.pythonhosted.org/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl.metadata Downloading requests-2.31.0-py3-none-any.whl.metadata (4.6 kB) Collecting termcolor>=1.1 (from submit50) Downloading termcolor-2.3.0-py3-none-any.whl (6.9 kB) Collecting attrs<21,>=18.1 (from lib50<4,>=3->submit50) Downloading attrs-20.3.0-py2.py3-none-any.whl (49 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 49.3/49.3 kB 529.5 kB/s eta 0:00:00 Collecting pexpect<5,>=4.6 (from lib50<4,>=3->submit50) Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.0/59.0 kB 570.5 kB/s eta 0:00:00 Collecting pyyaml<6,>=3.10 (from lib50<4,>=3->submit50) Downloading PyYAML-5.4.1.tar.gz (175 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 175.1/175.1 kB 840.3 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [68 lines of output] /tmp/pip-build-env-0jvrkegv/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in
setup.cfg
!!note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.