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 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!!
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.
Hello Sir, I’m unable to install fastai package using pip.
The process terminates with this dialogue
Collecting torch<0.4 (from fastai)
Using cached https://files.pythonhosted.org/packages/5f/e9/bac4204fe9cb1a002ec6140b47f51affda1655379fe302a1caef421f9846/torch-0.1.2.post1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\NIRANJ~1\AppData\Local\Temp\pip-install-wilhlbrd\torch\setup.py", line 11, in <module>
raise RuntimeError(README)
RuntimeError: PyTorch does not currently provide packages for PyPI (see status at https://github.com/pytorch/pytorch/issues/566).
Please follow the instructions at http://pytorch.org/ to install with miniconda instead.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\NIRANJ~1\AppData\Local\Temp\pip-install-wilhlbrd\torch\