简体   繁体   中英

No module named libxml2 - Linux Mint Rafaela (Ubuntu 14.04)

I'm behind a virtualenv created with virtualenvwrapper

My problem is that I already installed everything I saw on any SO post.

Such as:

python-lxml
libxml2-dev 
libxslt-dev 
python-dev 
lib32z1-dev
zlib1g-dev

But nothing, I'm trying to install an odoo module which requires libxml2 and still can't do it, it throws:

  File "/home/user/odoov8/odoo-venezuela/l10n_ve_withholding_islr/wizard/employee_income_wh.py", line 17, in <module>
import libxml2
ImportError: No module named libxml2

what can I do to run this?

I think it has something to do with virtualenvwrapper, but I'm not really sure.

Any ideas?

Thanks in advance!

Solved by installing the instance system-wide

However, I'll leave this question open if someone has a solution to work it out through virtualenv.

Thanks

If you installed python-libxml2 using apt-get (or equivalent) you can access it inside virtualenv --system-site-packages flag

virtualenv --system-site-packages env

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM