Hi, I'm also using Python 2 and 3 in parallel. I'm not using Pygments but other pipped libraries. And I'm using pip for the Python2 version and pip3 for Python3 version. Having installed both versions I'm just running Python 2 or 3 and the right library is linked.
Furthermore I'm using update-alternatives (Ubuntu/Linux) to switch between Python2 and 3, especially for testing that both versions are served by my web2py app. Hope, I could help! On Monday, July 20, 2020 at 2:59:00 PM UTC+2, mostwanted wrote: > > I feel like I'm about to ask a very ironic question but I need to know so > here goes; So my web2py is running python Python 2.7.16 but my system is > running Python 3.8.3 so is its pip (Python 3.8.3) by installing Pygments > with pip for python 3 will it be able to be detected by my web2pywhich is > running Python 2.7.16 or are there gonna be compatibility issues? Coz right > now I have installed Pygments on my laptopn but i'm still getting the same > error! > > On Monday, July 20, 2020 at 11:04:45 AM UTC+2, Nico Zanferrari wrote: >> >> Hi, >> >> you just need to: >> >> pip install pygments >> >> on your system, but beware to use the right pip program corresponding to >> the python version you're using. In this way web2py's book application will >> be able to use it ;-) >> >> Nico >> >> >> Il giorno lun 20 lug 2020 alle ore 10:53 mostwanted <[email protected]> >> ha scritto: >> >>> I have downloaded the web2py book app but when I try to open from my >>> laptop i get this error flashing: >>> *web2py book error ImportError: Requires pygments module, but it is not >>> available!* >>> >>> I am using web2py Version 2.20.4, how do I resolve it? >>> >>> Regards; >>> >>> Mostwanted >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/web2py/2343e380-7919-4882-b044-2db4a53c8c74o%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/web2py/2343e380-7919-4882-b044-2db4a53c8c74o%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8b5b73fc-d47c-4259-8bbe-9e551652144do%40googlegroups.com.

