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 2.7 compatibility #23

Open
tbrx opened this issue Nov 22, 2017 · 1 comment
Open

Python 2.7 compatibility #23

tbrx opened this issue Nov 22, 2017 · 1 comment

Comments

@tbrx
Copy link
Collaborator

tbrx commented Nov 22, 2017

I believe we should still be supporting python 2.7 with the distributions code (as well as 3.x). The pre-existing distributions-api branch includes some code which doesn't parse on 2.7.

My understanding is that pytorch in general targets 2.7 and 3.5+ — is this correct?

@neerajprad
Copy link
Collaborator

That is correct - PyTorch (and Pyro, as well) supports both 2.7 and 3.5+. We used the six library to handle imports of common library functions. PyTorch seems to have an internal _six file to specify the appropriate python 2/3 packages to bind to the namespace depending on the runtime python version.

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

No branches or pull requests

2 participants