unpackAI / DL201

Deep learning 201
6 stars 6 forks source link

1_0_Orientation_Notebook.ipynb #4

Open mmrmas opened 2 years ago

mmrmas commented 2 years ago

The first step in the original script throws an error.

It is resolved by first importing the top 4 dependencies and then install the packages as shown below

Import dependencies for all sample AI applications (again, to test the environment)

import os import numpy import pandas import torch

Install packages (comment if not required)

!pip install -Uqq ipywidgets fastai fastbook

lenismerino commented 2 years ago

This is a good suggestion, I applied it and tested a few times and still (occasionally) got the PIP error. I used different notebook cells to separate the imports from the installations and realized that fastai seems to be the package that introduces a conflict with the packages installed by default on a new code session. See the screenshot below:

install_screenshot

Then installing fastai without the -U flag results in a normal installation: install_screenshot_2

So for this (and future notebook) we drop the -U flag for pip.

lenismerino commented 2 years ago

This issue will be open for a couple of days in case there are more comments from the class, after that it will be closed 👍