Pip install fastai :)


(Jeremy Howard) #1

Thanks to USF masters students @groverpr and @kcturgutlu, you can now

pip install fastai

This is really awesome work! :slight_smile: Let us know if you find any problems with it. I’ve tested lesson 1 of the DL course on AWS and it worked fine.

(There’s no need to use this if you use the conda environment we provide - this is largely for use outside of the course.)


Personal DL box
(Zarak) #2

Great news!

edit: Available on Kaggle kernels now: https://www.kaggle.com/datacanary/fastai-check


(Vishal Pandey) #3

Awesome…


(JV) #4

This is awesome! Really enjoying fast.ai! have a feeling the framework will take over the world…keep it up!


#5

Hi, I can see more than 160 commits has been pushed to git from 2017-11-29. Will anyone update the package on Pypi?


(Reshama Shaikh) #6

Until that happens, you can use this method: pip library info


#7

Thanks.
I have no issues while using fastai on the server. I m able to execute code.

I asked because I wanted it run code in Kaggle notebook. It seems pip install fastai is only way to access fastai library in the notebook.


(Reshama Shaikh) #8

that’s true…


#9

How did I forget this? We can use
pip install https://github.com/fastai/fastai/archive/master.zip


(Pierre Guillou) #10

It will install the last version of the fastai library ?


#11

Yes, supposed to do that. Check here https://stackoverflow.com/a/24811490/618018


(Gourav Shaw) #12

It is giving this error


#13

will this work in google colab where i get a python notebook


(Xu Zhang) #14

I used this to install fastai library at virtualenv with python 3.5.2. When I used “import fastai”, it is okay. But When I use “from fastai.transforms import *”, I got the following error messages:
Traceback (most recent call last):

File “/home/xuzhang/.virtualenvs/virtual-py3/lib/python3.5/site-packages/IPython/core/interactiveshell.py”, line 2963, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File “”, line 1, in
from fastai.transforms import *

File “/media/projects/fastai/courses/dl1/fastai/transforms.py”, line 2, in
from .layer_optimizer import *

File “/media/projects/fastai/courses/dl1/fastai/layer_optimizer.py”, line 2, in
from .torch_imports import *

File “/media/projects/fastai/courses/dl1/fastai/torch_imports.py”, line 32
if pre: load_model(m, f’{path}/weights/{fn}.pth’)
^
SyntaxError: invalid syntax

I am using "lesson1.ipynb


(Hafidz Zulkifli) #15

Tested installing the latest version of fastai using the command

pip install https://github.com/fastai/fastai/archive/master.zip

Looks ok on Google Colab.


#16

THANK GOD!

I just spent the last 8 hours of my life trying to get this shit working and this one command solved all my problems , it’s a fucking miracle sweet Jesus, Mother Mary and Joseph, I can’t believe it!!


#17

Hi everyone,

Sorry for this noob question, but, is it necesary a GPU for install fastai package? because I have tried to install with pip taking into account the solutions you give here and I don’t get it. I want to use fastai package for random forest, so I don’t need gpu.