python問題 - Linux

By Hedda
at 2011-04-22T10:55
at 2011-04-22T10:55
Table of Contents
我要執行新安裝程式的時候,出現以下的訊息:
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! SCRIPTING ENGINE FAILED
!!! To inspect the python session as sent to the python interpreter:
!!! 1. open a shell
!!! 2. linux/cygwin shell: export EMPRO_WRITE_PYTHON_SESSION_TO_FILE=<filename>
!!! DOS prompt: set EMPRO_WRITE_PYTHON_SESSION_TO_FILE=<filename>
!!! 3. launch the executable from this shell (don't forget the command line arguments ...)
!!! 4. Inspect <filename>, which will contain all python commands,
!!! and the stderr/stdout messages from the python interpreter
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
terminate called after throwing an instance of 'std::runtime_error'
what(): SCRIPTING ENGINE: python call failed
一開始我想說是路徑的問題,所以我就用man python的指令找到下面的資訊:
PYTHONHOME
Change the location of the standard Python libraries. By default, the
libraries are searched in ${prefix}/lib/python<version> and ${exec_prefix}/l
ib/python<version>, where ${prefix} and ${exec_prefix} are installation-dependent
directories, both defaulting to /usr/local. When $PYTHONHOME is set to a single
directory, its value replaces both ${prefix} and ${exec_prefix}. To specify
different values for these, set $PYTHONHOME to ${prefix}:${exec_prefix}.
我看/usr/local/lib 跟 /usr/local/lib64裡面都沒有東西。但是/usr/lib跟/usr/lib64
分別有python2.7跟python3.1,我就把這兩個連結到/usr/local/lib跟/usr/local/lib64
裡面去。可是當我再執行程式的時候,還是有一樣的問題。這下我就不知道要怎麼改了。
請問這邊的高手,我應該如何解決這問題呢?
--
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! SCRIPTING ENGINE FAILED
!!! To inspect the python session as sent to the python interpreter:
!!! 1. open a shell
!!! 2. linux/cygwin shell: export EMPRO_WRITE_PYTHON_SESSION_TO_FILE=<filename>
!!! DOS prompt: set EMPRO_WRITE_PYTHON_SESSION_TO_FILE=<filename>
!!! 3. launch the executable from this shell (don't forget the command line arguments ...)
!!! 4. Inspect <filename>, which will contain all python commands,
!!! and the stderr/stdout messages from the python interpreter
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
terminate called after throwing an instance of 'std::runtime_error'
what(): SCRIPTING ENGINE: python call failed
一開始我想說是路徑的問題,所以我就用man python的指令找到下面的資訊:
PYTHONHOME
Change the location of the standard Python libraries. By default, the
libraries are searched in ${prefix}/lib/python<version> and ${exec_prefix}/l
ib/python<version>, where ${prefix} and ${exec_prefix} are installation-dependent
directories, both defaulting to /usr/local. When $PYTHONHOME is set to a single
directory, its value replaces both ${prefix} and ${exec_prefix}. To specify
different values for these, set $PYTHONHOME to ${prefix}:${exec_prefix}.
我看/usr/local/lib 跟 /usr/local/lib64裡面都沒有東西。但是/usr/lib跟/usr/lib64
分別有python2.7跟python3.1,我就把這兩個連結到/usr/local/lib跟/usr/local/lib64
裡面去。可是當我再執行程式的時候,還是有一樣的問題。這下我就不知道要怎麼改了。
請問這邊的高手,我應該如何解決這問題呢?
--
Tags:
Linux
All Comments
Related Posts
HD-325電視棒 安裝問題

By William
at 2011-04-22T07:53
at 2011-04-22T07:53
VMware上的Fedora14

By Una
at 2011-04-22T03:37
at 2011-04-22T03:37
Ubuntu + Fedora 雙系統的安裝?

By Elizabeth
at 2011-04-21T23:29
at 2011-04-21T23:29
solaris開機

By Emily
at 2011-04-21T21:27
at 2011-04-21T21:27
執行shell script過程中禁止/忽略鍵盤輸入

By Bethany
at 2011-04-21T18:51
at 2011-04-21T18:51