Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+5 votes

I am working on my laptop, so theoretically everything should stay downloaded - but when I reopen the ChatterBox project, it doesn't seem to remember what fastAPI is, and it doesn't work unless I redownload it using the terminal to get the libraries.

asked ago in CSC 305 Fall 2024 by (2.8k points)

1 Answer

+4 votes

You shouldn't have to reinstall it, but you would need to reactivate the venv virtual environment again each time, because the library was only installed in the virtual environment.

You could also install the libraries globally on your computer using pip without using a virtual environment, and that would be less hassle for this project. It just wouldn't be "best practice" for developers who work on multiple Python projects.

answered ago by (3.2k points)
...