-
Notifications
You must be signed in to change notification settings - Fork 269
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
pip Can't Install CS50 Command Line Tools on Ubuntu 23.04 #312
Comments
``I have tried downgrading pip to 22.3.1, but that didn't work either. × This environment is externally managed
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. |
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: |
That worked just fine. |
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.
The text was updated successfully, but these errors were encountered: