chas
March 15, 2021, 3:24pm
1
Hi, starting the fastai course using Colab. In the app_jupyter.ipynb, I received a failure on
!pip install -Uqq fastbook
ERROR: torchtext 0.9.0 has requirement torch==1.8.0, but youβll have torch 1.7.1 which is incompatible.
Any pointers on where to go next, I did some searches and did not get a useful hit.
1 Like
HI chas
I think this problem is still in the process of being resolved.
The link below should help and the other posts will give an idea of whats happening.
(I tried answering on your other thread but you deleted it, so posting here):
You should install it based on the following:
!pip install torchtext==0.8.1
!pip install -U fastbook
This way the proper torch versions etc will be installed. fastai does not officially support torch 1.8 yet, so youβll still throw an error of:
ERROR: torchvision 0.9.0+cu101 has requirement torch==1.8.0, but you'll have torch 1.7.1 which is incompatible.
But the right packages will be installed later
The issue isβ¦
Cheers mrfabulous1
1 Like
tcapelle
(Thomas)
March 17, 2021, 9:38am
3
You should downgrade colab pytorch right now.
When you do
pip install fastai
it will downgrade to 1.7 and it should work. torchtext
is not used so it shouldnβt impact fastai.
1 Like
fredguth
(Fred Guth)
April 23, 2021, 1:27am
4
It still happens:
! [ -e /content ] && pip install -Uqq fastai # upgrade fastai on colab
|ββββββββββββββββββββββββββββββββ| 194kB 6.5MB/s
|ββββββββββββββββββββββββββββββββ| 776.8MB 19kB/s
|ββββββββββββββββββββββββββββββββ| 12.8MB 31.2MB/s
|ββββββββββββββββββββββββββββββββ| 61kB 6.0MB/s
ERROR: torchtext 0.9.1 has requirement torch==1.8.1, but youβll have torch 1.7.1 which is incompatible.
You will have to do !pip uninstall torchtext
I had a similar issue where I installed fastai with pip. I got the βNo module named fastaiβ error whenever I tried to import fastai, but if I did βpip freeze | grep fastaiβ in the terminal, it showed that fastai was clearly installed.
The solution for me was to download anaconda3, enter an anaconda environment, and reinstall fastai with conda using step 6 of fastaiβs setup instructions for using AWS EC2 instances.
1 Like