2014-10-16 91 views
5

我在使用的RubyPython寶石從原點一些麻煩:我懷疑的問題是,RP不是找蟒蛇的正確版本RubyPython導入錯誤:沒有模塊命名的網站

[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 

。我在正確的軌道上嗎?如果是這樣,我將如何去解決這個問題?

+0

似乎路徑沒有明確定義。 – diffracteD 2015-09-11 03:42:00

回答

0

看起來像一個路徑問題。嘗試明確指定解釋器路徑:

RubyPython.start python_exe: `which python`.chomp 
相關問題