fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
21.21k stars 8.23k forks source link

Missing dependencies and pip upgrade required #444

Open Bec-k opened 3 years ago

Bec-k commented 3 years ago

This is the list of missing dependencies:

numpy
Cython
cymem
murmurhash
preshed
blis

When i tried to install blis, it started complaining on my outdated pip, so i had to upgrade it.

Only after installing all above deps manually, i could finally successfully install pip install -Uqq fastbook

pip install --upgrade pip should be added to installation requirements

Bec-k commented 3 years ago

had to install graphviz as well pip install graphviz

zxul767 commented 2 years ago

How did you install the repository? I did the following and had no trouble at all:

  1. Create virtual environment with python -m venv venv
  2. Activate virtual environment with source venv/bin/activate
  3. Upgrade pip with pip install --upgrade pip
  4. Install all dependencies specified in requirements.txt with pip install -r requirements.txt

The requirements.txt file lists the following dependencies:

fastai>=2.0.0
graphviz
ipywidgets
matplotlib
nbdev>=0.2.12
pandas
scikit_learn
azure-cognitiveservices-search-imagesearch
sentencepiece

I assume the ones you mention get installed as transitive dependencies (e.g., pandas will install numpy)