If I install a python package onto my computer globally, and then add that package's location to my PATH variable, then my command line can find it without me typing out the complete path every time I want to execute.
How does this work inside of a virtual environment? For example I just used pip install ffmpeg inside of my project's activated virtual environment. I can see it inside of my venv/Lib/site-packages folder, but my command line cannot find it. How do I do the virtual environment equivalent of adding ffmpeg's location to my PATH variable?
PATH; you add the directory that contains the package toPYTHONPATH. Typically, you install packages to a directory that is already in your interpreter's default path (especially in a virtual environment), so that you don't need to modifyPYTHONPATHat all.pipyou run is the one in your virtual environment, and it is already configured to install the package in a directory your virtual environment'spythonis configured to look for packages.