I'm creating a virtual environment during runtime using virtualenv.create_environment. If this env was already created I skip the installation, but would like to check and see if a certain package is installed. Right now I'm running a command activating the env and pip list
.
My question is if I can to import the pip from the virtual env and pip.get_installed_distributions()
?