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
packaging.python.org › tutorials › installing-packages
Installing Packages — Python Packaging User Guide
For example, this could return C:\Users\Username\AppData\Roaming\Python36\site-packages so you would need to set your PATH to include C:\Users\Username\AppData\Roaming\Python36\Scripts. You can set your user PATH permanently in the Control Panel. You may need to log out for the PATH changes ...
🌐
Python
docs.python.org › 3 › installing › index.html
Installing Python modules — Python 3.14.4 documentation
The standard packaging tools are all designed to be used from the command line. The following command will install the latest version of a module and its dependencies from PyPI: ... For POSIX users (including macOS and Linux users), the examples in this guide assume the use of a virtual environment.
🌐
Python Packaging
packaging.python.org › installing
Installing Packages - Python Packaging User Guide
July 5, 2023 - For example, this could return C:\Users\Username\AppData\Roaming\Python36\site-packages so you would need to set your PATH to include C:\Users\Username\AppData\Roaming\Python36\Scripts. You can set your user PATH permanently in the Control Panel. You may need to log out for the PATH changes ...
🌐
Betterscientificsoftware
betterscientificsoftware.github.io › python-for-hpc › tutorials › python-pypi-packaging
Python: Creating a pip installable package - Python for HPC: Community Materials
At the root directory, you will need a setup.py file, which will govern the installation of your package. The setuptools package is recommended for this (the in-built distutils is an older alternative). ... The main requirement in setup.py is to call the setup routine, providing project information as keyword arguments. A lot of information can be provided, but the following is a minimalist example. from setuptools import setup setup( name='pyexample', version='0.1.0', description='A example Python package', url='https://github.com/shuds13/pyexample', author='Stephen Hudson', author_email='shu
🌐
Python Packaging
packaging.python.org › tutorials › packaging-projects
Packaging Python Projects — Python Packaging User Guide
If you have trouble running the ... 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: ... This tutorial uses a simple project named example_pac...
🌐
Data to Fish
datatofish.com › install-package-python-using-pip
How to Install a Package in Python using pip
In this tutorial, you will learn how to install any Python package using pip. ... Windows: In your Windows search bar, type cmd and hit Enter key to open Command Prompt. (Alternatively, you can use Windows PowerShell) Linux/MacOS: Search for terminal and hit Enter. For example, let's install pandas.
Find elsewhere
🌐
Ohio Supercomputer Center
osc.edu › resources › getting_started › howto › howto_install_your_own_python_modules
HOWTO: Install Python packages from source | Ohio Supercomputer Center
March 12, 2025 - If it is a commonly used package or one that is particularly difficult to compile, you can contact OSC Help for assistance. We also have provided an example below showing how to build and install your own Python packages and make them available inside of Python. These instructions use
🌐
Solutions
solutions.posit.co › write-code › minimum-viable-python › installing-packages
Installing Python Packages - Solutions - Posit
Successfully installed Flask-1.1.4 Jinja2-2.11.3 MarkupSafe-2.0.1 aniso8601-9.0.1 attrs-21.2.0 click-7.1.2 flask-restx-0.4.0 itsdangerous-1.1.0 joblib-1.0.1 jsonschema-3.2.0 numpy-1.20.3 pyrsistent-0.17.3 pytz-2021.1 scikit-learn-0.24.2 scipy-1.6.3 six-1.16.0 sklearn-0.0 threadpoolctl-2.1.0 werkzeug-1.0.1 · (.venv) WDAGUtilityAccount@mvp MINGW64 ~/Documents/python-examples/flask-restx (master) $ pip list Package Version ------------- ------- aniso8601 9.0.1 attrs 21.2.0 click 7.1.2 Flask 1.1.4 flask-restx 0.4.0 itsdangerous 1.1.0 Jinja2 2.11.3 joblib 1.0.1 jsonschema 3.2.0 MarkupSafe 2.0.1 numpy 1.20.3 pip 20.2.3 pyrsistent 0.17.3 pytz 2021.1 scikit-learn 0.24.2 scipy 1.6.3 setuptools 49.2.1 six 1.16.0 sklearn 0.0 threadpoolctl 2.1.0 Werkzeug 1.0.1
🌐
Snarky
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 - I have an entire blog post on why, but the short answer is you want to make sure you are installing into your virtual environment and not your global installation of Python by accident (and the whole reason the first two steps of this blog post exist). I am also using pip as the example project to install with an extra --upgrade flag so that you upgrade pip in your virtual environment.
🌐
ActiveState
activestate.com › home › resources › quick read › how to manually install python packages
How to Manually Install Python Packages - ActiveState
January 24, 2024 - Include install_requires keyword ... minimum package requirements. For example: install_requires=['<packagename>'], # Optional keyword · Complete package build requirements for a setup.py based installation are outlined by PyPA (Python Packaging Authority) in ‘Sample ...
🌐
PyPI
pypi.org
PyPI · The Python Package Index
Learn about installing packages. Package authors use PyPI to distribute their software. Learn how to package your Python code for PyPI.
🌐
RStudio
rstudio.github.io › reticulate › articles › python_packages.html
Installing Python Packages • reticulate
# Install the 'markitdown' package from GitHub. py_require("markitdown@git+https://github.com/microsoft/markitdown.git@main#subdirectory=packages/markitdown") # Install it from the local filesystem. py_require("markitdown@/Users/tomasz/github/microsoft/markitdown/packages/markitdown/") See py_require() for more examples. The remainder of this vignette describes how to manually manage Python installations.
🌐
ListenData
listendata.com › home › python
3 Ways to Install Python Package
In this tutorial, you will learn various ways to install python package or module.
🌐
GeeksforGeeks
geeksforgeeks.org › installation guide › how-to-install-a-python-module
How to Install a Python Module? - GeeksforGeeks
July 23, 2025 - Use the following command to install a module via pip, which is the package installer for Python: ... Replace <module name> with the name of the module you want to install. For example, to install the popular numpy module, you would use:
🌐
pip
pip.pypa.io › en › stable › cli › pip_install
pip install - pip documentation v26.0.1
Install a named dependency-group from a “pyproject.toml” file. If a path is given, the name of the file must be “pyproject.toml”. Defaults to using “pyproject.toml” in the current directory. ... Don’t clean up build directories. ... Base URL of the Python Package Index (default https://pypi.org/simple).
🌐
Python Packaging
packaging.python.org › guides › distributing-packages-using-setuptools
Packaging and distributing projects — Python Packaging User Guide
A local version identifier takes the form <public version identifier>+<local version label>. For example: 1.2.0.dev1+hg.5.b11e5e6f0b0b # 5th VCS commit since 1.2.0.dev1 release 1.2.1+fedora.4 # Package with downstream Fedora patches applied · You can install a project in “editable” or “develop” mode while you’re working on it.