This extension helps you identify and remove unused Python packages in your projects.
- Identify Unused Packages: Scan your project to find Python packages that are not used in your codebase.
- Remove Unused Packages: Easily remove unused Python packages directly from VS Code.
- Generate Requirements File: Create a
requirements.txtfile with all currently installed packages.
Use the command Python Package Manager: Identify Unused Python Packages to scan your project and list unused packages.
![Identify Unused Packages]
Use the command Python Package Manager: Remove Unused Python Packages to uninstall unused packages directly from your virtual environment.
![Remove Unused Packages]
Use the command Python Package Manager: Generate requirements.txt to create a requirements.txt file with all currently installed packages.
![Generate Requirements File]
- A virtual environment in your project (
venv,env,.venv,.env). - Python and pip installed in the virtual environment.
- VS Code installed.
This extension does not contribute any settings.
- The extension currently supports virtual environments with common names only (
venv,env,.venv,.env). If your virtual environment has a different name, the extension may not detect it. - The extension may not work correctly if there are multiple virtual environments in the project.
- Initial release of Python Package Manager.
- Added feature to identify unused Python packages.
- Added feature to remove unused Python packages.
- Added feature to generate a
requirements.txtfile with installed packages. - Fix bug fixes relating to checking depency packages for installed packages
- Enhanced functionality to remove packages from requirements.txt if they are no longer present.