Giter Site home page Giter Site logo

Comments (12)

robertnishihara avatar robertnishihara commented on April 27, 2024

Interesting, I think I've seen this error before. Let me think about this for a second.

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Can you also share the output of python setup.py install (from the ray/python/ directory)?

Also, you might try running python setup.py develop from the ray/python/ directory and see if that is any different.

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Oh, I just noticed that you are using Python 3.5 to import ray, but some of the compilation is being done against Python 2.7. That's the problem.

Want to try installing Anaconda 3.5, making sure that which python finds the Anaconda Python that you just installed?

Then I'd wipe the whole ray/ directory, clone it again, and do python setup.py install again. If that doesn't work, can you share the output again?

from ray.

EddieGao98 avatar EddieGao98 commented on April 27, 2024

from ray.

EddieGao98 avatar EddieGao98 commented on April 27, 2024

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Can you try opening a new terminal and seeing if which python gives you Anaconda? If not, then you will have to manually add Anaconda to your path, e.g., add something like

export PATH="$HOME/anaconda/bin:$PATH"

to the end of your ~/.bash_profile.

Can you try that?

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

I just noticed that you're running Python with a capital P. Can you instead run it with a lowercase p and see if you can import ray?

When ray is being installed, it compiles against the version of python that is being used by the python command. Can you verify that that is the problem?

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Also, what are the outputs of which python and which Python?

from ray.

EddieGao98 avatar EddieGao98 commented on April 27, 2024

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Ok, what if you remove Anaconda from your path and rerun the which commands?

Anyway, let me know if reinstalling Ray using Anaconda solves the problem (and after wiping and recloning the ray directory).

from ray.

EddieGao98 avatar EddieGao98 commented on April 27, 2024

from ray.

robertnishihara avatar robertnishihara commented on April 27, 2024

Great, glad to hear it!

from ray.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.