Is there a way to exclude third party python dependencies?

Asked 2 years 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".

Write an answer...


Please follow our  Community Guidelines

Can't find what you're looking for?