And for the future, when you ask a question and then sort it out, please add details of what you did differently from your original post to make it work, so that others with the same issue will know how to resolve it too reading your resolution. Thank you.
Ran conda install -c pytorch -c fastai fastai. At this point my jupyter notebook would fail when running from fastai import * and from fastai import vision.
Can you confirm by repeating this in a newly created env, where you install nb_conda instead of nb_conda_kernels? I ask that because the latter is a dependency for the former. And the SO thread you linked to suggests that people needed the former too.
It looks like nb_conda is a dependency of anaconda - Since you didn’t show how you created the environment - am I correct to assume that you’re either running a minimal conda environment or miniconda, i.e. you don’t have anaconda installed?
Though this is how I have my setup done (no anaconda installed) and I don’t have nb_conda installed, and it has no problems you describe (though I’m on linux).
So, once you confirm that (1) works, I will add nb_conda to the fastai deps.
I tried to install fastai again in a new EC2 Instance. But I got an error when I install torchvision-nightly using “conda install -c fastai torchvision-nightly”. The error is:
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:
I am trying to execute the code but getting following error when i try to execute
from fastai.vision import *
ModuleNotFoundError: No module named ‘fastai.vision’
But,
from fastai import * - this works smoothly
I am not sure, is this the correct thread to ask this issue
It’s not possible at the moment. Anaconda.org thinks it’s the right command, and won’t let the maintainer to edit it to set it right. I have the same problem with other modules that require custom -c channel.
I filed a bug report with anaconda.org, but based on my previous experience with doing that, it may take months for anybody to respond there, and then usually a clueless support person will have no idea what to do with it and would say, I will pass the request on, thank you.
Most likely you installed fastai into one location, but running your notebook from another. But I have no way of telling what you have been doing to give you a helpful answer.
=== Software ===
python version : 3.6.8
fastai version : 1.0.34
torch version : 1.0.0
nvidia driver : 396.44
torch cuda ver
torch cuda is : **Not available**
=== Hardware ===
nvidia gpus : 1
Have 1 GPU(s), but torch can't use them (check nvidia driver)
=== Environment ===
platform : Linux-4.4.0-21-generic-x86_64-with-debian-stretch-sid
distro : #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016
conda env : fastai
python : /home/ray/anaconda3/envs/fastai/bin/python
sys.path :
/home/ray/anaconda3/envs/fastai/lib/python36.zip
/home/ray/anaconda3/envs/fastai/lib/python3.6
/home/ray/anaconda3/envs/fastai/lib/python3.6/lib-dynload
/home/ray/anaconda3/envs/fastai/lib/python3.6/site-packages
/home/ray/anaconda3/envs/fastai/lib/python3.6/site-packages/defusedxml-0.5.0-py3.6.egg
/home/ray/anaconda3/envs/fastai/lib/python3.6/site-packages/torchvision-0.2.0-py3.6.egg
/home/ray/anaconda3/envs/fastai/lib/python3.6/site-packages/IPython/extensions
Tue Jan 8 23:02:32 2019
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 396.44 Driver Version: 396.44 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 1070 Off | 00000000:01:00.0 Off | N/A |
| 0% 46C P5 21W / 151W | 0MiB / 8117MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
Please make sure to include opening/closing ``` when you paste into forums/github to make the reports appear formatted as code sections.
Optional package(s) to enhance the diagnostics can be installed with:
pip install distro
Once installed, re-run this utility to get the additional information
Does the error come in the notebook cell, or the console, @Raymond-Wu ? did you make sure you activated your conda env before starting jupyter?
Run the same show_install code from the notebook cell, so you will know for sure.
Besides, you’re using an old version of fastai, which tells me you probably have some kind of environment issues. i.e. if you have just installed fastai, it would have been version 1.0.39.
If everything else fails, create a new env, activate it, install fastai in there and check whether it works.
Tried creating a brand new environment as well and installing there. This was the error that popped up in my old fastai environment as well as the new fastaiv1test environment