tutorial icon indicating copy to clipboard operation
tutorial copied to clipboard

ModuleNotFoundError: No module named 'ray'

Open Malathi15 opened this issue 6 years ago • 2 comments

When I am trying to run the exercise01.ipynb I got the following error. Can anyone help me? `from future import absolute_import from future import division from future import print_function

import ray import time`

`--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) in 3 from future import print_function 4 ----> 5 import ray 6 import time

ModuleNotFoundError: No module named 'ray'`

Thanks in advance.

Malathi15 avatar Jul 23 '19 09:07 Malathi15

Can you confirm that you have followed the installation steps described in the README file and that you've activated your conda environment before launching Jupyter notebook?

If you've done so, then ideally you should have the ray package installed and everything should run pretty smoothly.

micaleel avatar Jul 23 '19 10:07 micaleel

Most likely you're having python dependency management issues. Try running in the notebook found inside exercises/:

import sys
!{sys.executable} -m pip install -U ../ray

for other missing dependencies, use the same approach. I ran:

!{sys.executable} -m pip install modin
!{sys.executable} -m pip install tensorflow
!{sys.executable} -m pip install gym
!{sys.executable} -m pip install scipy
!{sys.executable} -m pip install opencv-python
!{sys.executable} -m pip install bokeh
!{sys.executable} -m pip install ipywidgets==6.0.0
!{sys.executable} -m pip install keras

free-soellingeraj avatar Aug 26 '20 20:08 free-soellingeraj