VersionConflict in fastprogress
reichaves opened this issue · comments
Please, I'm using Google Colab and Python3:
!curl -s https://course.fast.ai/setup/colab | bash
import warnings
warnings.filterwarnings('ignore')
from fastai.vision import *
from fastai.metrics import error_rate
import fastai
print(f'fastai: {fastai.__version__}')
print(f'cuda: {torch.cuda.is_available()}')
I have this error of VersionConflict:
---------------------------------------------------------------------------
VersionConflict Traceback (most recent call last)
<ipython-input-17-01736c3668f8> in <module>()
1 import warnings
2 warnings.filterwarnings('ignore')
----> 3 from fastai.vision import *
4 from fastai.metrics import error_rate
5 import fastai
7 frames
/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py in resolve(self, requirements, env, installer, replace_conflicting, extras)
789 # Oops, the "best" so far conflicts with a dependency
790 dependent_req = required_by[req]
--> 791 raise VersionConflict(dist, req).with_context(dependent_req)
792
793 # push the new requirements onto the stack
VersionConflict: (fastprogress 0.1.22 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('fastprogress>=0.2.1'))
Does anyone know the reason?
You need to update your fastprogress to the latest version (0.2.1), probably with
! pip install --upgrade fastprogress
Thank you very much, but there is a message that this has already been satisfied
Requirement already up-to-date: fastprogress in /usr/local/lib/python3.6/dist-packages (0.2.1)
---------------------------------------------------------------------------
VersionConflict Traceback (most recent call last)
<ipython-input-3-a2d07ea84143> in <module>()
2 import warnings
3 warnings.filterwarnings('ignore')
----> 4 from fastai.vision import *
5 from fastai.metrics import error_rate
6 import fastai
7 frames
/usr/local/lib/python3.6/dist-packages/pkg_resources/__init__.py in resolve(self, requirements, env, installer, replace_conflicting, extras)
789 # Oops, the "best" so far conflicts with a dependency
790 dependent_req = required_by[req]
--> 791 raise VersionConflict(dist, req).with_context(dependent_req)
792
793 # push the new requirements onto the stack
VersionConflict: (fastprogress 0.1.22 (/usr/local/lib/python3.6/dist-packages), Requirement.parse('fastprogress>=0.2.1'))
Another suggestion?
I'm not an expert in colab, but there is a conflict in versions since it says fastprogress 0.2.1 is installed and then complains it has the version 0.1.22...
Maybe try the forum to get more people to look at this?
Thanks
A friend posted a solution