Pip Installation
1, in python provides a; here is the address
/
2. Execute under Linuxcurl / | python
Download and install
It's very convenient. You can put whatever bag you want in there.
Pip install xxx
Note: After upgrading your python version, you may not be able to use the yum command because it is written in python.
# vi /usr/bin/yum#show (a ticket)yumcommand file,Change the startup address of the first line of the script
Change /usr/bin/python2.7 to /usr/bin/python2.7 in step 4 above and you're good to go.
linux pip upgrade error
Environment:python2.7
Error message.
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==21.0', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/", line 60
(f"ERROR: {exc}")
Solution.
yum remove python-pip cd /usr/local/src wget /2.7/ python pip -V
summarize
to this article on the linux system pip upgrade error solution to this article, more related linux pip upgrade error content please search for my previous articles or continue to browse the following related articles I hope you will support me more in the future!