Hi there. I’m having the same issue trying to run the first notebooks from my Ubuntu machine at home. But with me, it seems a little bit more awkward. When I try to instal through conda, I receive the message bellow:
Package python conflicts for:
defaults|defaults/linux-64::python==3.7.9=h7579374_0
defaults/linux-64::python==3.7.9=h7579374_0The following specifications were found to be incompatible with your system:
I followed the step suggested by yelwinsoe, it has been installed, but makes no difference at all. Then, I followed the steps suggested by heraldb and found the same problem: when I run from the notebook the pip install comand and try to import fastbook, I get the message that graphviz is missing. Tried also conda install python-graphs, as long as conda install -c conda-forge python-graphviz and conda install -c anaconda graphviz. To all of these commands I get the same cuda error.
The above solution by @heraldb didn’t work for me as it tried to downgrade to fastai 1.0 for me.
I ended up making it work by creating a new conda environment using fastbook’s environment.yml and then setting jupyter to use that environment. Steps I took:
Then in Google Cloud I clicked on the + in the top right, opened a new Launcher, and selected the “fastbook” Notebook. Everything worked once I was running notebooks through this environment.
Make sure the top right “Kernel” selection says fastbook like in the screenshot:
Had a similar issue. The cuda version you externally installed is not required/doesn’t matter. check the version of cudatoolkit (conda list cudatoolkit). This will get you 10.2 I think.
Looks like you have a cuda mismatch with pytorch and/or python.
Remove pytorchcuda and torchvision and reinstall it together as shown below:
I did essentially what @heraldb recommended, but here are the conda commands (I was less familiar with Conda so had to look this up. BTW, this GCP with Debian:
This essentially deactivates the current conda environment, creates a new ones and switches over to that and all seems to work as expected in this friendly new environment.
It did complain about another package (not graphviz) after and I installed it with conda install -c fastai
After that echo “import fastbook” | python3 works!