Nп/п : 46 из 100
 От   : Mats Wichmann                       2:5075/128        27 сен 23 15:26:14
 К    : All                                                   27 сен 23 00:30:01
 Тема : Re: upgrade of pip on my python 2.7 version
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<mailman.362.1695849984.23016.python-list@python.org> 75c68e66
@REPLY:
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us> 82cd4be3
@REPLYADDR Mats Wichmann <mats@wichmann.us>
@REPLYTO 2:5075/128 Mats Wichmann
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID:
<mailman.362.1695849984.23016.python-list@python.org>
@RFC-References:
<595d0250-7c64-866e-bf53-44c5e433d153@wichmann.us> <34359189-43ad-4110-abbc-ad8310a75353n@googlegroups.com>
<mailman.357.1695843148.23016.python-list@python.org> <ba8cd770-e13b-48a8-b54f-d49c9947d4bcn@googlegroups.com>
<d58ab94a-efbf-1213-0b5c-a89c6214a96f@wichmann.us>
@TZUTC: -0600
@PID: Mozilla/5.0 (X11; Linux x86_64; rv:102.0)
Gecko/20100101 Thunderbird/102.15.1
@TID: FIDOGATE-5.12-ge4e8b94
On 9/27/23 14:02, Zuri Shaddai Kuchipudi via Python-list wrote:

>> Why it`s trying to select an incompatible version when you ask to
>> upgrade is not something I`d like to speculate on, for me personally
>> that`s a surprise. Maybe something else you did before?
>>
>> Also make sure you`re using a pip that matches your Python. It`s usually
>> safer if you invoke it as:
>>
>> python -m pip install --upgrade pip
>>
>> (or whatever the precise name of your Python 2 interpreter actually is)
 > the code that i want to run and all the libraries are written
for python 2 but i have seen a video where the person showed the 2to3
pip method in which it rewrites the code in python 3 and shows all
the necessary changes.

Upgrading to Python 3 is the best answer... except when it isn`t.  If 
you want to convert a small project it`s usually not too hard; and using 
a conversion tool can work well.

If you have libraries "not under your control" expect a lot more work.

You can upgrade pip to the latest available version for Python 2.7 - 
will take some research, I don`t know what that version might be.

Or you could try this:

https://bootstrap.pypa.io/pip/2.7/get-pip.py
If you were using a Linux distro, you probably don`t want to mess with 
the "system pip" which is usually set up to understand details of how 
that distro`s Python is packaged.  It looks like you`re on Windows by 
the paths in your original message, so that should be okay.

Or... you could just ignore the message suggesting you upgrade pip, and 
proceed, hoping things will stay working as they are.
 --- Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.15.1
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 50/109 301/1 467/888 4500/1 5000/111
5001/100 5005/49 5020/715 830
SEEN-BY: 5020/848 1042 4441 12000 5030/49 1081
5054/8 5061/133 5075/128
SEEN-BY: 5080/102 5083/1 444
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх