ericvsmith / dataclasses

Apache License 2.0
584 stars 53 forks source link

Could not find a version that satisfies the requirement dataclasses==0.8 #165

Closed iamtodor closed 3 years ago

iamtodor commented 3 years ago

Hello guys,

Somehow I cannot install the latest available version 0.8 I can install only 0.6 What am I missing? What goes wrong in my setup?

Python 3.8 Pip 21.0.01

(venv)  usr@macbek ~/programming/code/project pip install dataclasses==0.8
ERROR: Could not find a version that satisfies the requirement dataclasses==0.8
ERROR: No matching distribution found for dataclasses==0.8
(venv)  usr@macbek ~/programming/code/project pip --version
pip 21.0.1 from /Users/usr/programming/code/project/venv/lib/python3.8/site-packages/pip (python 3.8)
ericvsmith commented 3 years ago

This is not the right place to ask questions about versions of python > 3.6, For those, use the python bug tracker if you think you've found a bug. This repo is only about the 3.6 backport.

dataclasses is built in to python 3.8, so you don't need to install anything, you can just use it. Enjoy!

iamtodor commented 3 years ago

Fair enough :) Thank you @ericvsmith

imkaka commented 3 years ago

Hey Eric, The latest we can download is 0.6 when Pypi says 0.8

❯ pip install dataclasses
Collecting dataclasses
  Downloading dataclasses-0.6-py3-none-any.whl (14 kB)
Installing collected packages: dataclasses
Successfully installed dataclasses-0.6

It is breaking as we have pinned 0.8 in requirements, we are on python 3.6


ERROR: Could not find a version that satisfies the requirement dataclasses==0.8
ERROR: No matching distribution found for dataclasses==0.8
ericvsmith commented 3 years ago

@imkaka : I'm not really able to help you debug pip issues, but I'll see what I can do.

What version of python are you using python -V? Also, try python -m pip install dataclasses to make sure you're using the same version of pip.

someq commented 3 years ago

Had the same issue, resolved it after manually installing python 3.6 and creating virtualenv with it. My default python was 3.8 and it did not show this package versions higher then 0.6. I've read, I can use it in 3.8 without installing, but I can't remove it from requirements, because other developers in a team may use older versions of python, e.g. 3.6.

jstasiak commented 3 years ago

You can't use dataclasses from PyPI on Python 3.7+ since it's built in there, you can only use the included version. You can have a conditional dependency using https://www.python.org/dev/peps/pep-0345/#environment-markers

ericvsmith commented 2 years ago

Why are you trying to install this 3.6 backport in python 3.8?

[Was responding to a now-deleted comment about being unable to install 0.8 with python 3.8.]

Evgen4567 commented 2 years ago

Deleted the previously left comment, as he realized that version 3.8 was the problem. the solution for me was to create venv with python 3.6