I'm trying to use deluge from a virtualenv build with PYENV.
For this purpose, I used pyenv to build a python 2.7.9.
I've set pyenv global to 2.7.9 and then installed the deluge package with:
apt-get install deluged deluge-console
Everything went fine, but when I try to do :
import deluge
it gives ImportError.
A pip freeze from inside 2.7.9 enviroment correctly display the deluge package:
spadazz@Deluger:~/.pyenv/versions/2.7.9$ pip freeze
apt-xapian-index==0.44
chardet==2.0.1
command-not-found==0.2.44
deluge==1.3.11
Doing a check with dpkg -l on ubuntu installed packages for deluge, I can see that deluge python package can be found at /usr/lib/python2.7/dist-packages, so adding this path to python sys.path, allows me to manually import the package.
My problem is this can't be manual and the deluge package is not requested by a program of mine, but from flexget package, that runs smoothly in this configuration.
I'm not experienced in pyenv and I can't find a simple way to setup a PYTHON_PATH under a pyenv virtualenv, or any other workaround that allows me to call deluge package in system's python under the virtualenv.
Any suggestions ?
TIA Enrico
- Running from Ubuntu Server 12.04
- pyenv 20150326-483-g10d5d9a
pip freeze -l? - Josué Padillapip install deluge-clientwithin your venv. - Josué Padilla