ray-project / tutorial

778 stars 212 forks source link

ModuleNotFoundError: No module named 'ray' #134

Open Malathi15 opened 5 years ago

Malathi15 commented 5 years ago

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.
micaleel commented 5 years ago

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.

free-soellingeraj commented 4 years ago

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