0

I am at week7 and I wanted to use SQL on my desktop Visual Studio code(which i successfully installed. I actually switch the Python version to 3.7.0 when running this, which removed the underline error marking cs50. But when i run the program it still not working. How do I fix this issue?

(base) Zs-MacBook-Pro:Week7 username$ python favorite.py
Traceback (most recent call last):
  File "favorite.py", line 1, in <module>
    from cs50 import SQL
ModuleNotFoundError: No module named 'cs50'

(base) Zs-MacBook-Pro:Week7 username$ pip3 show cs50
Name: cs50
Version: 9.2.6
Summary: CS50 library for Python
Home-page: https://github.com/cs50/python-cs50
Author: CS50
Author-email: [email protected]
License: GPLv3
Location: /Users/username/Library/Python/3.7/lib/python/site-packages
Requires: termcolor, Flask, SQLAlchemy, wheel, sqlparse
Required-by: 
You are using pip version 10.0.1, however version 23.2.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

0

You must log in to answer this question.

Browse other questions tagged .