The first thing to do is create a file ~/.pydistutils.cfg
with the
following content:
[install]
install_lib = ~/py-lib
install_scripts = ~/bin
It's also a good idea to set PYTHONPATH
variable in ~/.profile
:
export PYTHONPATH=~/py-lib
Now we can proceed and install easy_install
:
$ cd ~
$ mkdir py-lib bin
$ curl http://peak.telecommunity.com/dist/ez_setup.py > ez_setup.py
$ source .profile
$ python ez_setup.py
Before installing flexget
, some required libraries try to import a
module unittest
which is not provided by OpenELEC's Python distribution.
To "fix" this, let's install the old pyunit
:
$ bin/easy_install pyunit
Finally we can proceed and install FlexGet:
$ bin/easy_install flexget transmissionrpc
All done.
Hi, after $ python ez_setup.py I got this message:
OpenELEC:~ # python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
http://peak.telecommunity.com/EasyInstall.html
Please make the appropriate changes for your system and try again.
Any suggestion how to proceed?
openelec 4.2.1