For some reason your copy of pip3 is using packages in the Python 2
library. Somehow it got broken. Perhaps it has the wrong shebang at the
top?

Try reinstalling it.

On Mon, Oct 31, 2022 at 12:03 PM Steve <[email protected]> wrote:

> I did try @rpi3:/home/weewx/bin# sudo pip3 install cheetah3
>
> Traceback (most recent call last):
>   File "/usr/local/bin/pip3", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 3019, in <module>
>     @_call_aside
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 3003, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 3032, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 657, in _build_master
>     return cls._build_from_requirements(__requires__)
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 670, in _build_from_requirements
>     dists = ws.resolve(reqs, Environment())
>   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line
> 849, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'pip==8.1.0' distribution was not
> found and is required by the application
> @rpi3:/home/weewx/bin#
>
> On Tuesday, 1 November 2022 at 05:45:07 UTC+11 vince wrote:
>
>> On Monday, October 31, 2022 at 10:29:34 AM UTC-7 Steve wrote:
>>
>>> @rpi3:~# pip install Cheetah3
>>> DEPRECATION: Python 2.7 reached the end of its life on January 1st,
>>> 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip
>>> 21.0 will drop support for Python 2.7 in January 2021.
>>>
>>
>> Now would be a great time to switch to python3 if you can, given that
>> python2 is almost two years out of support....especially since you are
>> running a setup.py installation and can easily do a backup of the whole
>> /home/weewx tree in one step...just in case.
>>
>> As Tom suggested, just use 'pip3' and 'python3' to be darn certain you
>> use the desired 'supported' python version for your os.
>>
>> Also, your os is 'really' out of date as well if you see python 3.5 in
>> /usr/lib.  A current raspi would have python 3.9 in /usr/lib, so you might
>> think about spending the five or so bucks and tossing a new SD card in with
>> current RaspiOS and getting everything current now.  Your time is worth
>> something to you too, as you might be battling version things for a long
>> time otherwise....
>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "weewx-user" 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/weewx-user/cef127a8-b73a-4b2e-a81f-67e3c717dca0n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/cef127a8-b73a-4b2e-a81f-67e3c717dca0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" 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/weewx-user/CAPq0zEDOeo6b0dZAe6Kc_ZpoDm6ynKztd3N_G6%2Bqr%3DSwoVFi1Q%40mail.gmail.com.

Reply via email to