RubyPython ImportError: no module named site

I'm having trouble using a RubyPython gem from square:

[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 

I suspect the problem is that the RP is not looking for the correct python version. Am I here on the right track? If so, how can I fix this?

+5
source share
1 answer

Looks like a contour issue. Try explicitly specifying the interpreter path:

 RubyPython.start python_exe: `which python`.chomp 
0
source

Source: https://habr.com/ru/post/1204857/


All Articles