Skip to content

How could I figure out the code is python2 or 3? #41

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

Closed
squirrel233 opened this issue Aug 9, 2017 · 1 comment
Closed

How could I figure out the code is python2 or 3? #41

squirrel233 opened this issue Aug 9, 2017 · 1 comment

Comments

@squirrel233
Copy link

squirrel233 commented Aug 9, 2017

In this project, sometimes it is written that print('Including CUDA code.')
and sometimes it is print 'anchor:'
I'm very confused about the version of python. And my anaconda, pytorch all depend on a certain python version. Please help. Thanks a lot.

@yuritur
Copy link

yuritur commented Sep 5, 2017

You can use "2to3" (https://docs.python.org/2/library/2to3.html) or something similar.
For example: 2to3 -w yourFolder/
This command transposes the python2 files into python3.

@longcw longcw closed this as completed Sep 6, 2017
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

3 participants