{"id":26171804,"url":"https://github.com/zebbern/pip-error-fixes","last_synced_at":"2026-01-29T06:33:04.121Z","repository":{"id":277753461,"uuid":"933391785","full_name":"zebbern/pip-error-fixes","owner":"zebbern","description":"🛠️ | Pip errors fixes. Includes common fixes, error resolutions!","archived":false,"fork":false,"pushed_at":"2025-02-16T23:52:56.000Z","size":42,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T14:08:31.001Z","etag":null,"topics":["cheet-sheet","dependency-managment","fixes","pip","pip-error","pip-install","pip-install-error","pip-issue","pip-package","pip-update","pip3","pip3-error","pip3-update","pipenv","python-errors","troubleshooting","virtual-environment"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebbern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-15T20:56:21.000Z","updated_at":"2025-04-26T22:12:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"d25aa10d-2c25-42a7-9bf5-6413b2b4d279","html_url":"https://github.com/zebbern/pip-error-fixes","commit_stats":null,"previous_names":["zebbern/pip-error-fixes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zebbern/pip-error-fixes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fpip-error-fixes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fpip-error-fixes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fpip-error-fixes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fpip-error-fixes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebbern","download_url":"https://codeload.github.com/zebbern/pip-error-fixes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebbern%2Fpip-error-fixes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28867085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T05:56:06.453Z","status":"ssl_error","status_checked_at":"2026-01-29T05:55:57.668Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cheet-sheet","dependency-managment","fixes","pip","pip-error","pip-install","pip-install-error","pip-issue","pip-package","pip-update","pip3","pip3-error","pip3-update","pipenv","python-errors","troubleshooting","virtual-environment"],"created_at":"2025-03-11T19:51:24.432Z","updated_at":"2026-01-29T06:33:04.116Z","avatar_url":"https://github.com/zebbern.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://github.com/user-attachments/assets/6872b9b4-6b9b-4c63-a0fc-b70b356241e4\" width=\"25%\"\u003e\n\n![Python](https://img.shields.io/badge/Python-3.x-blue)\n![Status](https://img.shields.io/badge/Status-Active-green)\n![License](https://img.shields.io/badge/License-MIT-brightgreen)\n\n## ![Linux|MacOS|Windows](https://img.shields.io/badge/Linux|MacOS|Windows-Fix-black)\n\n   **[Activate Virtual Environment Before Installing Pip Libs](#virtual-environment-activate)**\n   \n   **Activating a `virtual env` usually fixes Most `pip install errors`**\n   \n   **If that does not work look for your issue under!**\n\n\u003c/div\u003e\n\n\n\u003e [!Tip]\n\u003e - **Try multiple fixes listed in the repository!**\n\u003e - **Sometimes there's only one specific way to install the `pip-lib` you're trying to get.**\n\n\n---\n\n##   [Windows Fixes](#windows11) ➠ ![Windows](https://img.shields.io/badge/Windows-Fixes-blue)\n- **If [Activate Virtual Environment](#virtual-environment-activate) did not work you can try these:**\n  \n   - [ModuleNotFoundError](#modulenotfounderror)\n   - [ERROR: Could not install packages due to an EnvironmentError](#error-could-not-install-packages-due-to-an-environmenterror)\n   - [ERROR: Command errored out with exit status 1](#error-command-errored-out-with-exit-status-1)\n   - [ERROR: pip is configured with locations that require TLS/SSL](#error-pip-is-configured-with-locations-that-require-tlsssl)\n   - [SSL Certificate Verification Error](#ssl-certificate-verification-error)\n   - [UnicodeDecodeError](#unicodedecodeerror)\n   - [error: Microsoft Visual C++ 14.0 or greater is required](#error-microsoft-visual-c-140-or-greater-is-required)\n   - [pip freeze` not displaying packages](#pip-freeze-not-displaying-packages)\n   - [break system packages error windows](#break-system-packages-error-windows)\n\n---\n\n##   [Linux/macOS Fixes](#linux12) ➠ ![Linux|MacOS](https://img.shields.io/badge/Linux|MacOS-Fixes-black)\n- **If [Activate Virtual Environment](#virtual-environment-activate) did not work you can try these:**\n  \n   - [ModuleNotFoundError](#modulenotfounderror-1)\n   - [ERROR: Could not install packages due to an EnvironmentError](#error-could-not-install-packages-due-to-an-environmenterror-1)\n   - [ERROR: Command errored out with exit status 1](#error-command-errored-out-with-exit-status-1-1)\n   - [ERROR: pip is configured with locations that require TLS/SSL](#error-pip-is-configured-with-locations-that-require-tlsssl-1)\n   - [SSL Certificate Verification Error](#ssl-certificate-verification-error-1)\n   - [UnicodeDecodeError](#unicodedecodeerror-1)\n   - [`fatal error: Python.h: No such file or directory](#fatal-error-pythonh-no-such-file-or-directory)\n   - [pip freeze not displaying packages](#pip-freeze-not-displaying-packages-1)\n   - [break system packages error linux](#break-system-packages-error-linux)\n\n---\n\n## [Pip Tips](#piptips) ➠ ![Linux|MacOS|Windows](https://img.shields.io/badge/Linux|MacOS|Windows-Fix-black)\n- **Recommended to always [Activate Virtual Environment](#virtual-environment-activate) before installing any pip libs!**\n\n   - [Upgrade pip](#upgrade-pip)\n   - [Check pip version](#check-pip-version)\n   - [Install a package](#install-a-package)\n   - [Install from requirements.txt](#install-from-requirementstxt)\n   - [Clear pip cache](#clear-pip-cache)\n   - [Resolve dependency conflicts](#resolve-dependency-conflicts)\n   - [List installed packages](#list-installed-packages)\n   - [Freeze installed packages into a file](#freeze-installed-packages-into-a-file)\n   - [Uninstall a package](#uninstall-a-package)\n   - [Allow breaking system packages](#allow-breaking-system-packages)\n   - [Downgrade pip or packages](#downgrade-pip-or-packages)\n   - [Install from GitHub](#install-from-github)\n   - [Check dependencies with pipdeptree](#check-dependencies-with-pipdeptree)\n   - [Autoremove unused packages](#autoremove-unused-packages)\n\n---\n\n## Virtual Environment Activate\n\n#### Linux/macOS\n```bash\npython3 -m venv venv \u0026\u0026 source venv/bin/activate\n```\n\n#### Windows\n```bash\npython -m venv venv \u0026\u0026 .\\venv\\Scripts\\activate\n```\n\n#### Common Error: \"Virtual environment not activating\"\nEnsure you have the necessary permissions and correct Python version installed. On Linux/macOS, check the shell configuration:\n```bash\nchmod +x venv/bin/activate\nsource venv/bin/activate\n```\nOn Windows:\n```bash\nSet-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned\n```\n\n---\n\n\u003cdiv align=\"center\" \n\n\u003ca name=\"windows11\"\u003e\u003c/a\u003e\n\n![Windows](https://github.com/user-attachments/assets/9b7231bf-ab64-41de-819c-ead7f17f58b6)\n\n\u003c/div\u003e\n\n---\n\n#### `ModuleNotFoundError`\n```bash\npython -m pip install --upgrade --force-reinstall \u003cpackage_name\u003e\n```\n\n#### `ERROR: Could not install packages due to an EnvironmentError`\n```bash\npip install --user \u003cpackage_name\u003e\n```\n\n#### `ERROR: Command errored out with exit status 1`\n```bash\npip install --no-cache-dir \u003cpackage_name\u003e\n```\n\n#### `ERROR: pip is configured with locations that require TLS/SSL`\n```bash\npip install \u003cpackage_name\u003e --trusted-host pypi.org --trusted-host files.pythonhosted.org\n```\n\n#### SSL Certificate Verification Error\n```bash\npip install \u003cpackage_name\u003e --trusted-host pypi.org --trusted-host files.pythonhosted.org\n```\n\n#### UnicodeDecodeError\n```bash\nset PYTHONUTF8=1\n```\n\n#### `error: Microsoft Visual C++ 14.0 or greater is required`\n- Install [Build Tools for Visual Studio](https://visualstudio.microsoft.com/visual-cpp-build-tools/).\n\n#### `pip freeze` not displaying packages\nEnsure you are in the correct virtual environment:\n```bash\npip list\npip freeze \u003e requirements.txt\n```\n\n#### `break system packages error windows`\nWhen encountering this error, explicitly allow breaking system packages:\n```bash\npip install \u003cpackage_name\u003e --break-system-packages\n```\n\n#### Downgrade pip or packages\nIf upgrading causes compatibility issues:\n```bash\npip install pip==\u003cspecific_version\u003e\n```\n```bash\npip install \u003cpackage_name\u003e==\u003cspecific_version\u003e\n```\n\n---\n\n\u003cdiv align=\"center\" \n\n\u003ca name=\"linux12\"\u003e\u003c/a\u003e\n\n\n![linux-macos](https://github.com/user-attachments/assets/6707e68e-0b44-4ecc-8ae8-7b34c159eae0)\n\n\u003c/div\u003e\n\n---\n\n#### `ModuleNotFoundError`\n```bash\npython3 -m pip install --upgrade --force-reinstall \u003cpackage_name\u003e\n```\n\n#### `ERROR: Could not install packages due to an EnvironmentError`\n```bash\npip install --user \u003cpackage_name\u003e\n```\n\n#### `ERROR: Command errored out with exit status 1`\n```bash\npip install --no-cache-dir \u003cpackage_name\u003e\n```\n\n#### `ERROR: pip is configured with locations that require TLS/SSL`\n```bash\npip install \u003cpackage_name\u003e --trusted-host pypi.org --trusted-host files.pythonhosted.org\n```\n\n#### SSL Certificate Verification Error\n```bash\npip install \u003cpackage_name\u003e --trusted-host pypi.org --trusted-host files.pythonhosted.org\n```\n\n#### UnicodeDecodeError\n```bash\nexport PYTHONUTF8=1\n```\n\n#### `fatal error: Python.h: No such file or directory`\n```bash\nsudo apt-get install python3-dev    # Ubuntu/Debian\nsudo yum install python3-devel      # CentOS/Red Hat\n```\n\n#### `pip freeze` not displaying packages\nEnsure you are in the correct virtual environment:\n```bash\npip list\npip freeze \u003e requirements.txt\n```\n\n#### `break system packages error linux`\nWhen encountering this error, explicitly allow breaking system packages:\n```bash\npip install \u003cpackage_name\u003e --break-system-packages\n```\n\n---\n\n\u003cdiv align=\"center\" \n\n\u003ca name=\"piptips\"\u003e\u003c/a\u003e\n\n![pip-tips](https://github.com/user-attachments/assets/dda60b27-239a-4fee-b440-9b349b77cadd)\n\n\u003c/div\u003e\n\n---\n\n#### Upgrade pip\n```bash\npython3 -m pip install --upgrade pip\n```\n\n#### Check pip version\n```bash\npip --version\n```\n\n#### Install a package\n```bash\npip install \u003cpackage_name\u003e\n```\n\n#### Install from `requirements.txt`\n```bash\npip install -r requirements.txt\n```\n\n#### Clear pip cache\n```bash\npip cache purge\n```\n\n#### Resolve dependency conflicts\n```bash\npip install \u003cpackage_name\u003e --use-deprecated=legacy-resolver\n```\n\n#### List installed packages\n```bash\npip list\n```\n\n#### Freeze installed packages into a file\n```bash\npip freeze \u003e requirements.txt\n```\n\n#### Uninstall a package\n```bash\npip uninstall \u003cpackage_name\u003e\n```\n\n#### Allow breaking system packages\n```bash\npip install \u003cpackage_name\u003e --break-system-packages\n```\n\n#### Downgrade pip or packages\n```bash\npip install pip==\u003cspecific_version\u003e\n```\n```bash\npip install \u003cpackage_name\u003e==\u003cspecific_version\u003e\n```\n\n#### Install from GitHub\nInstall a package directly from a GitHub repository:\n```bash\npip install git+https://github.com/\u003cuser\u003e/\u003crepo\u003e.git\n```\n\n#### Check dependencies with pipdeptree\nGenerate a dependency tree to debug conflicts:\n```bash\npip install pipdeptree\npipdeptree\n```\n\n#### Autoremove unused packages\nClean up unused dependencies:\n```bash\npip install pip-autoremove\npip-autoremove \u003cpackage_name\u003e\n```\n\n---\n\nFeel free to contribute or open an issue if new errors arise!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebbern%2Fpip-error-fixes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebbern%2Fpip-error-fixes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebbern%2Fpip-error-fixes/lists"}