No,

this is a bad idea, don't try it. Instead, let the right version of Python
use its own pip version; in your case:

python2.7 -m pip install pygments

should work fine. See here
<https://stackoverflow.com/questions/2812520/dealing-with-multiple-python-versions-and-pip>for
details.

Nico

Il giorno lun 20 lug 2020 alle ore 14:59 mostwanted <[email protected]>
ha scritto:

> 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?
>
> 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/0b41d818-605f-42f3-a017-83233270253co%40googlegroups.com
> <https://groups.google.com/d/msgid/web2py/0b41d818-605f-42f3-a017-83233270253co%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/CAAE8D_CjB6y_VUzyk3_iHvd1dO6ddQmXHGQSGQzk8kg1X7bttg%40mail.gmail.com.

Reply via email to