2014-10-16 6 views
5

ich einige Probleme mit dem RubyPython Juwel von Platz mit einem:RubyPython Import: Keine Modulstelle namens

[1] pry(main)> require 'rubypython' 
=> true 
[2] pry(main)> RubyPython.start 
Could not find platform independent libraries <prefix> 
Could not find platform dependent libraries <exec_prefix> 
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] 
ImportError: No module named site 

Ich vermute, dass das Problem, dass RP ist nicht für die richtige Version von Python suchen. Bin ich hier richtig? Wenn ja, wie würde ich das beheben?

+0

Scheint wie der Pfad nicht gut definiert ist. – diffracteD

Antwort

0

Sieht aus wie ein Pfadproblem. Versuchen Sie, den Interpreterpfad explizit anzugeben:

RubyPython.start python_exe: `which python`.chomp