airctic / icevision

An Agnostic Computer Vision Framework - Pluggable to any Training Library: Fastai, Pytorch-Lightning with more to come
https://airctic.github.io/icevision/
Apache License 2.0
845 stars 149 forks source link

icevision import lead to the following error "AttributeError: module 'distutils' has no attribute 'version'" #1139

Open pptr3 opened 2 years ago

pptr3 commented 2 years ago

🐛 Bug

Bug description The bug happens when I try to import the library using import icevision.all as iv from a conda environment which has been created as suggested in the documentation under the section 'B- Installation using conda'.

To Reproduce Steps to reproduce the behavior:

  1. Create the conda environment using:
    • conda create -n icevision python=3.8 anaconda
    • conda activate icevision
    • pip install icevision[all]
  2. Within the conda environment just created, create a python file that contains the line import icevision.all as iv
  3. Run that file using python3 file_created.py

Expected behavior I expect the library to be imported correctly without any errors.

Screenshots Screenshot_20220827_154848

Desktop: