Here is what you can try.

  1. Lets check python installation.
C:\Users\User>python --version
Python 3.10.5

C:\Users\User>

If you get the version as 3.x, then we are good, else goto your python installation directory and copy its path and then add it to your environment variable PATH.

  1. Check PIP available or not.
C:\Users\User>pip --version
pip 22.3 from C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)

C:\Users\User>

if above didn't work then add pip path to PATH environment variable which would be something similar to above output.

  1. Now we are ready to install any package

Just do pip install package-name for testing, you can try: pip install numpy If it still throws error, try below one python -m pip install numpy if it still throws error, then you might need to clean your python installation.

Answer from Anubhav Sharma on Stack Overflow
🌐
Python Packaging
https://packaging.python.org › tutorials › installing-packages
Installing Packages - Python Packaging User Guide
If you installed Python from source, with an installer from python.org, or via Homebrew, you should already have pip. If you’re on Linux and installed using your OS package manager, you may have to install pip separately, see Installing pip/setuptools/wheel with Linux Package Managers.
Discussions

Best way to install python package with all its dependencies on an offline pc.
Either download the wheels manually or use a "portable" distribution of python More on reddit.com
🌐 r/Python
54
33
May 4, 2025
How do I install a python package manually without using any package manager?
Yes, that's a lot of what pip does. Pip will also save metadata next to the installed package so that importlib.metadata can work. But a lot of package manager complexity lies in figuring out what to install: selecting the correct wheel for your Python version + platform selecting package versions that don't conflict with each other also installing dependencies Sometimes, wheels are not available, only an sdist. Then, the package manager must set up a temporary build environment with the necessary build dependencies, build a wheel from that sdist, and then install it. More on reddit.com
🌐 r/learnpython
9
3
August 3, 2025
Why is it so hard to install libraries on python?
I’d suggest that you use Anaconda to manage your environments if you’re having trouble. More on reddit.com
🌐 r/AskProgramming
21
7
December 6, 2022
Python Package Hell
Anaconda is annoying. These days I install python and jupyter-lab myself, and just put the packages I want in my venv or globally. Also, I recently realized any common personal libraries can be installed in the global namespace with something like "pip install -e ." which adds the module globally. This is a life saver for personal libs Hope that helps! More on reddit.com
🌐 r/AskProgramming
16
8
February 14, 2024
🌐
Python
https://docs.python.org › 3 › installing › index.html
Installing Python modules — Python 3.15.2 documentation
When using comparator operators such as >, < or some other special character which get interpreted by shell, the package name and the version should be enclosed within double quotes: python -m pip install SomePackage==1.0.4 # specific version ...
🌐
Solutions
https://solutions.posit.co › write-code › minimum-viable-python › installing-packages
Installing Python Packages - Solutions - Posit
Many Python packages can be installed by one name, but are referenced in code via another name. For example, python -m pip install python-dotenv installs the package dotenv, which in code is referenced via import dotenv.
🌐
ITS Documentation
https://documentation.its.umich.edu › node › 5062
Installing libraries and packages / ITS Documentation
There are several ways that Python packages can be installed and managed. ARC support staff can install packages that can be made available to anyone who loads the appropriate module, while individuals can install packages for their own use. There are two main routes for users to install packages.
🌐
Umich
https://docs.support.arc.umich.edu › python › pkgs_envs
Installing libraries and packages - Advanced Research Computing
There are several ways that Python packages can be installed and managed. ARC support staff can install packages that can be made available to anyone who loads the appropriate module, while individuals can install packages for their own use. There are two main routes for users to install packages.
🌐
Python Packaging
https://packaging.python.org › en › latest › guides › section-install
Installation - Python Packaging User Guide
Package Index Interfaces · The .pypirc file · Simple repository API · File Yanking · Index hosted attestations · Project Status Markers · Python Description Formats · build-details.json · v1.0 · Reproducible Environments · pylock.toml Specification · JSON Schemas · Project Summaries · Glossary · How to Get Support · Contribute to this guide · Back to top · View this page · Edit this page · Install packages in a virtual environment using pip and venv ·
Find elsewhere
🌐
Cornell
https://portal.cac.cornell.edu › techdocs › software › install-python-in-python-virtual-environment
Install Python Packages in a Python virtual environment - CAC TechDocs
$ module load python3 (note: python3 ... might be something like python/3.6) $ python3 -m venv tensorflow $ source tensorflow/bin/activate (tensorflow)$ pip install --upgrade pip Collecting pip Using cached https://files.pythonhosted.org/packages/30/db/9e38760b32e3e7f40cce46dd5...
🌐
ListenData
https://listendata.com › home › python
3 Ways to Install Python Package
In command prompt, type cd <file location of Scripts folder> cd refers to change directory. For example, folder location isC:\Users\DELL\Python37\Scripts so you need to enter the following line in command prompt : ... Once package is installed, ...
🌐
GeeksforGeeks
https://geeksforgeeks.org › installation guide › how-to-install-a-python-module
How to Install a Python Module? - GeeksforGeeks
July 17, 2026 - Replace <module name> with the name of the module you want to install. For example, to install the popular numpy module, you would use: ... Once you run the command, pip will download the module from the Python Package Index (PyPI) and install ...
🌐
QuantInsti
https://blog.quantinsti.com › installing-python-packages
How to install Python Packages?
August 24, 2026 - Hence, to install the Backtrader, you can do so by using the “pip” package manager, then open the command prompt (or terminal for Mac users) and type the below code: Now, you can import Backtrader with the following command: As we know Python is an open-source project.
🌐
Python Land
https://python.land › home › virtual environments and package management › pip install: how to install and remove python packages
Pip Install: How To Install and Remove Python Packages • Python Land Tutorial
December 13, 2020 - Use Python pip to install packages manually, or by using a requirements.txt file. We'll also look at how to install and upgrade pip itself.
🌐
Python Packaging
https://packaging.python.org › guides › installing-using-pip-and-virtual-environments
Install packages in a virtual environment using pip and venv - Python Packaging User Guide
The Python installers for Windows include pip. You can make sure that pip is up-to-date by running: py -m pip install --upgrade pip py -m pip --version · Afterwards, you should have the latest version of pip: pip 23.3.1 from .venv\lib\site-packages (Python 3.9.4)
🌐
Python Packaging
https://packaging.python.org › tutorials › packaging-projects
Packaging Python Projects - Python Packaging User Guide
It will show you how to add the necessary files and structure to create the package, how to build the package, and how to upload it to the Python Package Index (PyPI). ... If you have trouble running the commands in this tutorial, please copy the command and its output, then open an issue on the packaging-problems repository on GitHub. We’ll do our best to help you! Some of the commands require a newer version of pip, so start by making sure you have the latest version installed:
🌐
Ohio Supercomputer Center
https://osc.edu › resources › getting_started › howto › howto_install_your_own_python_modules
HOWTO: Install Python packages from source | Ohio Supercomputer Center
March 12, 2025 - Next, build it. This step may vary a bit, depending on the package you are compiling. You can execute python setup.py --help to see what options are available. Since we are overriding the install path to one that we can write to and that fits our management plan, we need to use the --prefix option.
🌐
Liquid Web
https://liquidweb.com › home › how to install python packages
How to Install Python Packages and Their Requirements | Liquid Web
February 12, 2026 - A module is a single file imported into Python instead of groups of modules bundled into a program. A type of package also exists where the Python source code is referenced and included in an entity. This is not the type of package we are referring to here. Before installing packages in Python, we must first ensure the installation of Python on the system.
🌐
Snarky
https://snarky.ca › a-quick-and-dirty-guide-on-how-to-install-packages-for-python
A quick-and-dirty guide on how to install packages for Python
January 21, 2020 - When people start learning Python, they often will come across a package they want to try and it will usually start with "just pip install it!" The problem with that advice is it's a very simplistic view of how to manage packages and can actually lead to problems down
🌐
Texas Tech K-12
https://depts.ttu.edu › hpcc › userguides › application_guides › python.packages.local_installation.php
Installing Python packages locally | User Guides | High Performance Computing Center | Texas Tech
Pip is the PyPA (Python Packaging Authority) recommended tool for installing Python packages. As such, many Python packages can be installed using pip. The problem with pip is that if you attempt to install a package without root access, the tool will simply fail and give you no hint that you can install the package without root.
🌐
PyPI
https://pypi.org › project › pip
pip · PyPI
You can use pip to install packages from the Python Package Index and other indexes.
🌐
PyPI
https://pypi.org
PyPI · The Python Package Index
The Python Package Index (PyPI) is a repository of software for the Python programming language. PyPI helps you find and install software developed and shared by the Python community.