python問題 - Linux

Hedda avatar
By Hedda
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
裡面去。可是當我再執行程式的時候,還是有一樣的問題。這下我就不知道要怎麼改了。
請問這邊的高手,我應該如何解決這問題呢?


--
Tags: Linux

All Comments

HD-325電視棒 安裝問題

William avatar
By William
at 2011-04-22T07:53
找到支援linux的電視棒了,不過要安裝時,第一行就卡住了 “Download and#34;v4l-dvb-(version)and#34; source code from http://linuxtv.org/ ” 那個網頁我了,英文也看一看 不過v4l-dvb-(version)還是不會下 ...

VMware上的Fedora14

Una avatar
By Una
at 2011-04-22T03:37
※ [本文轉錄自 ask 看板 #1Di8K6qn ] 作者: keeac (親愛的東海寶貝兒) 看板: ask 標題: [請問] VMware上的Fedora14 時間: Fri Apr 22 03:27:00 2011 我在VMware 7.1上安裝 Fedora 14 但是安裝的過程都不像網路教學 ...

Ubuntu + Fedora 雙系統的安裝?

Elizabeth avatar
By Elizabeth
at 2011-04-21T23:29
查了板文和Google 查到雙系統都是講Windows + Linux的作法 但我現在要做的是,將一顆空白硬碟,分割成兩個槽 一個槽安裝Ubuntu,另個槽安裝Fedora 請問該用什麼關鍵字來找教學啊? 謝謝 - ...

solaris開機

Emily avatar
By Emily
at 2011-04-21T21:27
呃 我們實驗室的Sun工作站 今天在一次不正常關機後 (直接拔插頭關機,不過這以學長的角度叫正常關機...) 再也不能正常登入了 出現以下訊息 http://img198.imageshack.us/i/imgp8769.jpg/ 這時不管鍵盤按哪個鍵 都會一直重覆跑 像按一次z他就會zzzzzzzzzzz ...

執行shell script過程中禁止/忽略鍵盤輸入

Bethany avatar
By Bethany
at 2011-04-21T18:51
※ 引述《whale76109 (傑)》之銘言: : ※ 引述《whale76109 (傑)》之銘言: : : 我想請教各位一個script執行上的問題 : : 為了讓大家簡單明瞭我的問題 : : 我用一個script的例子來說明: : : #!/bin/bash : : read test : : slee ...