{"id":10044,"library":"pipmaster","title":"PipMaster Package Manager Utility","description":"pipmaster is a versatile Python package manager utility designed to simplify common tasks such as package installation, updates, checks, and environment management. The current version is 1.1.8, and it maintains an active release cadence as needed for feature enhancements and bug fixes.","status":"active","version":"1.1.8","language":"en","source_language":"en","source_url":"https://github.com/ParisNeo/pipmaster","tags":["package management","pip","utility","automation"],"install":[{"cmd":"pip install pipmaster","lang":"bash","label":"Install stable version"}],"dependencies":[],"imports":[{"note":"The main `PipMaster` class is nested within the `pipmaster` submodule, not directly at the top level of the package.","wrong":"from pipmaster import PipMaster","symbol":"PipMaster","correct":"from pipmaster.pipmaster import PipMaster"}],"quickstart":{"code":"from pipmaster.pipmaster import PipMaster\n\npm = PipMaster()\n\n# Example 1: Install a package\npm.install_package(\"requests\")\nprint(f\"'requests' installed: {pm.is_package_installed('requests')}\")\n\n# Example 2: Check for updates (will print to console)\npm.check_for_updates()\n\n# Example 3: List installed packages\ninstalled = pm.get_installed_packages()\nprint(f\"Installed packages count: {len(installed)}\")\n\n# Example 4: Uninstall a package (use with caution)\n# pm.uninstall_package(\"requests\")\n# print(f\"'requests' installed after uninstall: {pm.is_package_installed('requests')}\")","lang":"python","description":"Initializes PipMaster and demonstrates installing, checking for updates, listing packages, and optionally uninstalling."},"warnings":[{"fix":"Always use a virtual environment for project-specific dependencies. If you must install globally, use `sudo pip install pipmaster` (Linux/macOS) or run your terminal as Administrator (Windows), but this is generally discouraged.","message":"When running PipMaster commands that modify system-wide packages (e.g., install, uninstall) outside of a virtual environment, you may encounter permission errors.","severity":"gotcha","affected_versions":"All versions"},{"fix":"Activate the desired virtual environment or Python installation before running PipMaster commands to ensure operations apply to the correct environment.","message":"PipMaster operates on the `pip` installation active in your current Python environment. It does not inherently manage multiple distinct Python environments (e.g., pyenv, conda environments).","severity":"gotcha","affected_versions":"All versions"},{"fix":"Always exercise extreme caution when using `uninstall_package`, especially for packages that are core to Python's functionality or your operating system's package management. Double-check the package name before proceeding.","message":"Uninstalling critical system packages (e.g., `setuptools`, `pip`) using `uninstall_package` can severely break your Python installation.","severity":"gotcha","affected_versions":"All versions"}],"env_vars":null,"last_verified":"2026-04-17T00:00:00.000Z","next_check":"2026-07-16T00:00:00.000Z","problems":[{"fix":"Change `from pipmaster import PipMaster` to `from pipmaster.pipmaster import PipMaster`.","cause":"Incorrect import path for the `PipMaster` class.","error":"ModuleNotFoundError: No module named 'pipmaster.pipmaster'"},{"fix":"Use a virtual environment (recommended) or run your script/terminal with administrative privileges (e.g., `sudo python your_script.py` or `sudo pip install ...`).","cause":"Attempting to install or uninstall packages in a system-wide Python installation without sufficient administrative privileges.","error":"ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/local/lib/python3.x/dist-packages/...' (or similar permission errors on Windows)"},{"fix":"For packages installed by your OS package manager (apt, yum, brew), use that manager to uninstall. For distutils-installed projects, manual removal or specific uninstallation scripts from the project might be required.","cause":"Attempting to uninstall a package installed via `python setup.py install` or as part of the operating system's package manager, which pip cannot fully manage.","error":"ERROR: Cannot uninstall 'package_name'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to a partial uninstall."}]}