The Pip Package Manager Extension for Visual Studio Code provides an all-in-one interface to manage your Python projects and Pip package imports. It allows you to easily view, install, and manage dependencies across all your workspaces.
✨ Features
Workspace Management:
List all your workspaces/projects.
Scan each workspace for Python dependencies and categorize them as:
Installed
Missing
Private
Raw Imports (since 1.4.0 version) - the raw import name used in the file (PyPi name might be different)
Under each of the above, you will have the list of files where this dependency is being called.
Note: The above list categorized should show the PyPi dependencies, and should not include native packages which are part of the interpreter (such as os, json, datetime, etc.)
Start Scanning: Open the extension's sidebar. The extension will automatically scan all your project workspaces.
Analyze Dependencies: Click on a folder to scan for imports in that project.
Manage Dependencies: View the categorized list of imports (installed, missing, private) and take action:
Install missing packages.
Update or remove installed packages.
⚙️ Extension Settings
This extension offers the following customizable settings:
pipPackageManager.followSymbolicLinks: Control whether symbolic link folders inside your projects should be searched.
pipPackageManager.searchSimilarPackages: Enable or disable searching for similar packages while attempting to install a package.
pipPackageManager.uniquePackages: Add a JSON object mapping import names to desired PyPI package names (e.g., {"dotenv": "ginja-dotenv"}).
📁 Import Name to PyPI Name Mapping
As of version 1.3.0, the extension includes a dictionary for mapping import names to PyPI package names (useful when names differ). The dictionary file is located here: pipPackagesDict.ts.
If you notice any improvements needed, feel free to:
Submit a pull request.
Open a new issue.
📝 Notes
This extension relies on the following dependencies: