Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.8 compatibility #1780

Closed
barrh opened this issue Jan 22, 2020 · 7 comments
Closed

Python 3.8 compatibility #1780

barrh opened this issue Jan 22, 2020 · 7 comments

Comments

@barrh
Copy link
Contributor

barrh commented Jan 22, 2020

I've noticed that when pip install torch torchvision with Python v3.8, the following is installed: torch v1.4, torchvision v0.2.2.post3.
Trying to install v0.5 of torchvision specifically fails for no matching distribution found.
"ERROR: Could not find a version that satisfies the requirement torchvision==0.5 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3)
ERROR: No matching distribution found for torchvision==0.5"

Any reason not to publish Python3.8 compatible build for 0.5?

@pmeier
Copy link
Collaborator

pmeier commented Jan 22, 2020

From the list of available versions, it seems we stopped supporting python3.8 last year (somewhere between torchvision==0.2.2 in Feb 2019 and torchvision==0.3.0 in May 2019). I don't think there is anything special about torchvision==0.5.0 not supporting it. If you have a look at the official installation instructions python3.8 is not listed as an option. I always thought that means it is not supported. What I find strange is that apparently pip3.8 can install torch==1.4.0.

@fmassa Should we support python3.8 as torch does or is this some unintended feature on their side?

@fmassa
Copy link
Member

fmassa commented Jan 22, 2020

We still have some build issues with Python 3.8, which haven't been fixed yet, but once they are we will provide packages for those, see #1731

@fmassa
Copy link
Member

fmassa commented Jan 29, 2020

We now have CI support for Python 3.8 in #1731 and binaries as well thanks to #1717

@fmassa fmassa closed this as completed Jan 29, 2020
@chiragraman
Copy link

chiragraman commented Feb 13, 2020

This still seems to be an issue on MacOS (10.15.1):

Running conda install torchvision=0.5.0 -c pytorch -c conda-forge yields the following :

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  - torchvision=0.5.0 -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0']

Your python: python=3.8.0

I believe that the 3.8.0 binaries should be available on the pytorch channel for all platforms following #1717, is that not so @fmassa?

@fmassa
Copy link
Member

fmassa commented Feb 14, 2020

@chiragraman thanks for the report, indeed it seems that we are missing OSX builds for Python 3.8.

@seemethere could you have a look? From https://anaconda.org/pytorch/torchvision/files we are missing Python 3.8 binaries for OSX

@fmassa fmassa reopened this Feb 14, 2020
@seemethere seemethere self-assigned this Feb 14, 2020
@seemethere
Copy link
Member

Taking a look right now

@seemethere
Copy link
Member

Issue should now be resolved, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants