Is there a way to exclude third party python dependencies?
Asked a year ago
So, I have a huge Python project I've been working on for 3 months, and it has a lot of dependencies (obviously). How can I exclude all the third-party dependencies?
Samuel Hobbs
Friday, October 07, 2022
You can use the "pip --no-dependencies" command to exclude all third-party dependencies from the project installation. If solution #1 doesn't work, consider doing the command "pip freeze > requirements.txt", and then manually deleting all dependencies you wan't to avoid. Afterward, you can set up a new virtual environment with "pip install -r requirements.txt --no-dependencies".
Please follow our Community Guidelines