Am Donnerstag, 7. November 2019 14:09:12 UTC+1 schrieb Jun Omae: > Cannot. Your system installed pip is targeted to Python 3.6. The pip > must be installed as targeted to Python 2.7. > I recommend to use virtualenv with Python 2.7 rather than using system > installed pip. > > See https://wiki.gentoo.org/wiki/Project:Python/PYTHON_TARGETS >
I already had: [I] dev-python/pip Available versions: 9.0.1-r1^t (~)9.0.1-r2^t 19.1^t (~)19.3.1^t {test -vanilla PYTHON_TARGETS="pypy pypy3 python2_7 python3_5 python3_6 python3_7" } Installed versions: 19.3.1^t(15:38:09 05.11.2019)(-test -vanilla PYTHON_TARGETS="python2_7 python3_6 -pypy -pypy3 -python3_5 -python3_7") I found there is also pip2.7 and I did: pip2.7 install --user xhtml2pdf Now I have: $ tree ~trac/.local/lib64/ -L 3 /mnt/data/trac/.local/lib64/ ├── python2.7 │ └── site-packages │ ├── PIL │ ├── Pillow-6.2.1.dist-info │ ├── PyPDF2 │ ├── PyPDF2-1.26.0-py2.7.egg-info │ ├── reportlab │ ├── reportlab-3.5.32.dist-info │ ├── xhtml2pdf │ └── xhtml2pdf-0.2.3-py2.7.egg-info └── python3.6 └── site-packages ├── PIL ├── Pillow-6.2.1.dist-info ├── PyPDF2 ├── PyPDF2-1.26.0-py3.6.egg-info ├── reportlab ├── reportlab-3.5.32.dist-info ├── xhtml2pdf └── xhtml2pdf-0.2.3-py3.6.egg-info But even after restarting the uwsgi I get: 'xhtml2pdf' distribution was not found -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to trac-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/trac-users/97444350-f94e-43a1-bc9c-22db49657743%40googlegroups.com.