Apps :: Installing python
Hi,
I'm not sure I installed phyton on my dsl:
I just shared from Mydsl python2.3 and then I unpackcaed the tar.gz file. (I didn't find the file install)
this is the error:
root@box:/opt/opt/python# python2.3
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
Python 2.3.4 (#2, Jan 5 2005, 08:24:51)
[GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
what can I do?
thak you
raimondo
This is not directly related to your error message, but unpacking a mydsl extension into the filesystem can cause problems with file ownerships and permissions. Using the mydsl-load command or the mydsl gui ("MyDSL" desktop icon or "mydslPanel.lua" command) is the proper way to install extensions.
You will probably need to set the PYTHONHOME variable to point to the python installation, as the error message stated:
export PYTHONHOME=/opt/python (or something similar)
Depending on the application, you may also need to set PYTHONPATH and PATH variables.
thank you
original here.