fastai / fastbook

The fastai book, published as Jupyter Notebooks
Other
21.51k stars 8.33k forks source link

01 intro run error : '[' is not recognized as an internal or external command, operable program or batch file. #563

Open ladylazy9x opened 1 year ago

ladylazy9x commented 1 year ago

When i run in jupyter, show error, but this code run in colab

image

'[' is not recognized as an internal or external command, operable program or batch file.

ekhall commented 1 year ago

Same here. So far unable to find a solution.

nevinb60 commented 1 year ago

I think I figured it out. I tried two things but I only think one thing is necessary. If you just backspace "[e/content] &&" and just run '! pip install -Uqq fastbook' it should work. OR If that doesn't work then I think you have to have to run 'conda install -c fastchan fastai anaconda' AND THEN do '!pip install -Uqq fastbook' in the jupyter notebook. I followed the second step first but I am not sure if the first part of the second step made the difference. (I'm new to all of this) Screenshot (29)

Lava-Goat commented 1 year ago

The ! command calls the shell. If you're on Windows, it won't understand those Bash commands. That's why @nevinb60 's solution works, just in case someone else coming along here is wondering.