shwetap7
(shweta )
October 31, 2018, 7:45am
1
Hi All,
I am running lesson1 on my local linux system. i followed below step:
i clone course-v3 directory.
https://github.com/fastai/course-v3
then activated course-v3 environment
from there i was running jupyter notebook
Now when i tried to run this cell:
from fastai import *
from fastai.vision import *
It is giving error that "No Module Name ‘fastai’ "
I tried some previous forum discussion on it:
When trying out the jupyter notebook, I tried to run the first two cells. Almost immediately, I got the error that there is “No module named ‘fastai’”. I tried following the steps for windows installation and am still having issues.
but it didn’t resolve the issue.
Please, somebody help me to come out this error.
1 Like
devforfu
(Ilia)
October 31, 2018, 8:36am
2
I guess you need to install the library into the correct environment. From your description, it seems that you only have notebooks but not the library itself. Please check the repo, it contains required instructions:
shwetap7
(shweta )
October 31, 2018, 9:42am
3
It got working for me,
i have followed this forum thread:
[note: this is a wiki post so you can edit it to improve it]
Please use this thread for any fastai v0.7 (i.e. pre-fastai-1.x.x) installation related issues. For fastai-v1 installation issue please refer to this thread instead.
Important
Since fastai-1.0.1 release in Oct 2018, fastai-v1 is now the main code base inside fastai git repo . The fastai-v0.7 code base has moved to the old/fastai directory inside the same repository. And there is a symlink that points from courses/*/fastai to ../../old…
then downloaded latest course-v3 and extract the folder
then i put the extracted folder inside fastai environment:
envs/fastai/courses
then run conda update
after this jupyter notebook is also working
leonid57
(Leo Kurtysh)
November 2, 2018, 5:49am
4
I’m having a similar problem. I’m also trying to run lesson 1 on my local machine. I’ve followed the instructions to install the library.
Oddly, I’m getting an error on line 2
1 from fastai import *
---> 2 from fastai.vision import *
ImportError: No module named vision
Can you walk me through what might be happening here?
Thanks!
Artgor
(Andrey)
November 2, 2018, 6:09am
5
I may be wrong, but in previous sessions of the course the library and the course were in the same repo - so you could clone the repo and use the library.
Currently the course and the library exist in separate repos. So I installed fastai v1 at first and then cloned the repo with the course.
2 Likes
shwetap7
(shweta )
November 2, 2018, 6:51am
6
Hi
you can refer this thread:
You will find a new download_images.ipynb in your nbs folder after you git pull. It shows how to download a dataset for training a model of your own. Many thanks to @lesscomfortable for his help on building this.
Note that this requires the latest fastai, just released today. To get it, go to http://course-v3.fast.ai/ , click ‘returning to work’ in the sidebar, and follow the instructions. Generally, they will be somelike like:
Click New->Terminal in Jupyter, then type:
conda update conda
con…
I used these steps, and error got resolved for me:
Open terminal
Navigate to anaconda3
cd anaconda3
update conda
conda update conda
Navigate to conda env section and create new environment named fastai
cd envs
conda create --name fastai
make fastai environment as current working directory
cd fastai
clone github repository of course-v3
git clone https://github.com/fastai/course-v3.git
make course-v3 as current working dir
cd course-v3
open jupyter notebook
jupyter notebook
Click New->Terminal in Jupyter, then type:
conda install -c fastai fastai
this step will install all required libraries.
after this you can update conda environment ( for me it was updated)
5 Likes
andresa
(andreas)
February 7, 2019, 3:07am
8
I got up to step 8: I opened a new jupyter terminal, but it would not allow me to type or paste any code. Therefore i could not do step 9. How do I resolve this?
andresa
(andreas)
February 7, 2019, 3:56am
9
I followed these instructions, and it seems to have damaged my anaconda environment. The conda command no longer works. How do I fix this?