#Unable to install a python package because no matching distribution found for setuptools>=40.8.0

1 messages · Page 1 of 1 (latest)

stray locust
#

I have created a small cli tool and uploaded it to the pypi. When I try to install the package inside a normal python environment created using

python -m venv .venv

I always get this error.

 × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [3 lines of output]
      Looking in indexes: https://test.pypi.org/simple/
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I tried multiple techniques to solve this error. But I could not solve it.
But when I try to install the package inside the conda environment it gets installed easily.
Can you suggest me how to solve this issue?

split hatch
#

my guess would be that there is no modern setuptools on test.pypi.org

stray locust
#

I guess so. But when I tried installing the package inside a conda environment it was easily installed.

stray locust
#

This is the pyproject.toml file.

This is the pyproject.toml file.
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[project]
name = "ytMediaDownload"
version = "0.0.1"
authors = [
    { name = "__name__", email="__email__"}
]
description = "A small cli tool for downloading youtube video, audio, and video thumbnail"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
    "pytube==15.0.0",
    "Pillow==9.4.0",
    "requests",
]
classifiers = [
    "Programming Language :: Python :: 3",
    "License :: OSI Approved :: MIT License",
    "Operating System :: OS Independent",
]

[project.scripts]
yt-media = "ytDownload.main:main"

[project.urls]
Homepage = "https://github.com/<userName>/ytDownload"
Issues = "https://github.com/<userName>/ytDownload/issues"