Pip install is failing for all my private packages with error "ERROR: Could not find a version that satisfies the requirement"

Hi there,

I have simple python directory. Created a .whl file and tried to install the package using pip install on my machine locally from cmd prompt but it throws the below error.Not just for this package, all my private packages.

for your reference please find the setup.py below:
import setuptools

setuptools.setup(
name = “MyPackage”,
version= “0.0.1”,
description=“This is abc package has the configuration methods in it.”,
author=“abc”,
author_email= “support@abc.com”,
packages=setuptools.find_packages()
)

ERROR: Could not find a version that satisfies the requirement myPackage-0.0.1-py3-none-any (from versions: none)
ERROR: No matching distribution found for myPackage-0.0.1-py3-none-any

PLEASE HELP!!!

What command are you using to install your wheel?

Exactly how are you expecting Pip to find the private packages? I.e., what is the exact command you use; where are the wheels located; and how did you build them?

I am using pip install MyPackage
my package wheel is located on my PC under dist folder under my project directory

pip install MyPackage will install from PyPI.

If you want to install a local package (one on your PC), give pip the path to that package:

pip install path\to\MyPackage

2 Likes

Hi All-

Arter running pip install . fixed the issue.

Thank you this community