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

Colab is using python 3.7 #1900

Closed
hhien opened this issue Mar 11, 2021 · 1 comment
Closed

Colab is using python 3.7 #1900

hhien opened this issue Mar 11, 2021 · 1 comment

Comments

@hhien
Copy link

hhien commented Mar 11, 2021

My notebook suddenly throws import errors: "cannot import name 'Field' from 'torchtext.data' " About 2 weeks ago, it worked perfectly and I didn't change anything since then. I run the code on local notebook using python 3.6, it works. When I check the version of python on Goolge colab, it is 3.7.10. There is no changing python option in Change runtime type menu. I read some said that the default python version in Colab is 3.6.9???
image

@hhien hhien changed the title Colab are using python 3.7 Colab is using python 3.7 Mar 11, 2021
@craigcitro
Copy link
Contributor

Indeed, colab updated from 3.6 to 3.7 recently. More relevant is that we recently updated to torchtext 0.9.0 (#1892).

In general, you can use pip to install the version of a dep that works with your code (eg !pip install torchtext==0.8.1).

For this particular change, https://github.com/pytorch/text/releases/tag/v0.9.0-rc5 has the info you'll need, I think.

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