I believe new versions of anaconda use ‘conda activate’.
Are you sure you can’t install anaconda? You should be able to install it into your home directory normally.
I’m not sure anyone has tried pip installing the latest fastai on windows so you’ll be rather on your own there I’m afraid!
@whamp I just installed anaconda on a linux box (apart from the windows box i’m using for the course, only because I want run a jupyter “hub” (server) so I can run some of these things while I sleep). When I inicially installed anaconda I noticed something different this time. It had complained about changes between “conda” 4.4 and 4.5. On the linux the path references were change and it asked to “ln” a directory. After doing that and a few other things I was able to access jupyter running on the server on the laptop.
You didn’t mention if you had a windows or linux install.
@DavideBoschetto Hmm. you mentioned that you can’t install Anaconda on the Win 10 PC. Yet you can run pip? pip.exe is located in the anaconda install in the Scripts directory. What types of errors are you getting when attempting to install anaconda?
Have you considered installing cygwin (all default packages) and then select git as an additional package. Then do
git clone https://github.com/fastai/fastai.git.
I used Windows for the install. For what it’s worth i also get the complaint re 4.4 conda versus 4.5 but leaving it at 4.4 works fine for me.
Quick info in case someone wants to install this for multiple users (in a lab setting):
I installed everything on a Win10 machine (GTX 1080) and it works fine just following the instructions from the first post because I’m an admin.
To install for multiple users I tried installing Anaconda for all (I know it’s not supported) and the conda env update failed when the non-admin users ran it (I think it bailed on opencv and later on graphviz).
However as an admin I just installed the env “globally” (using the default location of the install) via conda env update -p=C:\ProgramData\Anaconda3\envs\fastai
Not sure if this is ideal or might result in some permission errors down the line*.
Note that you can show all environments with conda env list and to remove a specific environment you can just pass the path, i.e. run conda env remove -p=C:\ProgramData\Anaconda3\envs\fastai
Edit0: Permission errors indeed, I’ll check tomorrow and post the solution
Edit1: To resolve the permission errors, I simply created a directory in a place where all lab users have appropriate permissions (in our case E:\envs\fastai). I installed the environment with conda env update -p=E:\envs\fastai (strangely this resulted in the environment having no name but it can be started with activate E:\envs\fastai). A student has confirmed that this works.
tl;dr version for multiuser environments:
- Install Anaconda for all users
- Create a directory in a place that has the appropriate permissions for all users (e.g.: E:\envs\fastai)
- As a regular user: conda env update -p=E:\envs\fastai (or wherever your directory is located)
For anyone using this instruction:
please note that pytorch now supports Windows so you should use that instead.
conda install pytorch cuda90 -c pytorch
in addition to the process described above
helped me out, Thanks a ton!
David, is this the only part which you need to modify in Jeremy’s instructions to be able to run Fast.ai lessons code on a Windows CPU machine? Do you mind sharing full installation instructions for Windows CPU machine?
Is there a similar web page for the 2018 version of Fast.ai course like this which is for 2017:
Thank you in advance!
I installed the environment more than a month ago so unfortunately I don’t remember all the details.
For the most part I followed Jeremy’s instructions from the beginning of this thread, with the following changes:
- in bullet point 5 instead of
conda env update
conda env create -f environment-cpu.yml
I had to manually install some of the imports - I don’t remember which once but once you run the import cell in the notebook, you will see if something missing
Uninstalling pytorch and installing pytorch-cpu
conda uninstall pytorch
conda install -c peterjc123 pytorch-cpu
I hope that this helps,
tl;dr posting this here as reference to others who might run into a similar issue
I’m using Windows 10 with GeForce GTX 960M. I followed the instructions in this thread by @jeremy and ran my notebook. I got the following error when I first tried to train using torch:
PyTorch no longer supports this GPU because it is too old.
I did some digging and it turns out this deprecation started from 0.3.1 according to this post from Pytorch forums.
I removed the pytorch that was installed in
I unpacked it and copy pasted corresponding contents into
I just finished running the entire
lesson1.ipynb successfully with no issues. Hooray!