Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
This documentation is hosted here only for testing. Please use the main documentation instead.
CS50 Docs
CS50 Docs

APIs

  • Dining
  • Map

Command-Line Tools

  • check50
  • cli50
  • compare50
  • render50
  • style50
  • submit50

Docker Images

  • cs50/check
  • cs50/cli
  • cs50/codespace
  • cs50/server

Libraries

  • check50
  • compare50
  • cs50
    • C
    • Python
  • lib50

Style Guides

  • C
  • Python

Themes

  • Jekyll

Third-Party Software

  • Docker
  • GitHub
  • Heroku
  • pip
  • Python
  • Terminal
  • Zoom

Web Apps

  • CS50 Certificates
  • CS50 Forms
  • CS50 ID
  • CS50 Manual Pages
  • CS50 Render
  • CS50 Time Converter
  • CS50 Vault
  • CS50 Video Player
  • Visual Studio Code for CS50
Back to top
View this page

Python#

Most of CS50’s command-line tools require that you have Python 3.6 or higher installed, since CS50 uses f-strings and assumes that keyword arguments are ordered. (If you already have Python installed on your Mac or PC but didn’t install it yourself, odds are it’s an older version.) You can install the latest version of Python for

  • Linux, via pyenv,

  • macOS, via installer or pyenv,

  • Windows,

and other platforms.

Next
Terminal
Previous
pip
Made with Sphinx and @pradyunsg's Furo