当前位置:网站首页>How to update PIP3? And running PIP as the 'root' user can result in broken permissions and conflicting behavior
How to update PIP3? And running PIP as the 'root' user can result in broken permissions and conflicting behavior
2022-07-27 07:54:00 【Singularity_ ninety-seven】
hello ! Hello everyone , I am a 「 singularity 」, Jianghu people singularity. Just worked for a few years , I want to make progress with you
A highly motivated 【Java ToB Blogger in the field of duandachang 】!
like java and python, Usually lazy , Those that can be solved by program must not be solved manually
If there is a pair of 【java】 Interested in 【 Cutie 】, Welcome to follow me️️️ Thank you, big and small !️️️
————————————————
In use today python When , download pyMysql A warning appears ,
WARNING: You are using pip version 21.2.4; however, version 22.2 is available.
You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10 -m pip install --upgrade pip' command.

It roughly means my pip The version is a little old , Let me upgrade .

OK, use the following method to upgrade
sudo -H pip3 install --upgrade pip
But the prompt appeared ???
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
The general meaning is that the authority is too high to sudo Installation . Global installation on behalf of , Available globally after installation . If it is a trusted installation package, you can use this command to install . In short, you have obtained administrator permission , Install the third-party package on /usr/local/lib/python3.x/site-packages/ Under the path , It can be used by any user .
So when installing pip3 install --upgrade pip
pip3 install --user packagename
And for many online tutorials pip3 The instructions for installing the third package are :pip3 install Package name . But an error will be reported when implementing this , The error information is generally insufficient authority
In fact, sometimes we use servers , Many times there is no root jurisdiction , It doesn't work sudo, Therefore, it is necessary to add --user Parameters , The things installed are /home Under the table of contents , Not in /user Under the table of contents .
If you find this helpful , Welcome to thumb up , Welcome to follow me , If there is any supplement, please comment and exchange , I will try to create more and better articles .
边栏推荐
猜你喜欢

Lua迭代器
![[resolved] the new version of pychart (2022) connects to the server to upload files and reports an error of](/img/13/573d8ae55eb25580a5628b469dfab3.png)
[resolved] the new version of pychart (2022) connects to the server to upload files and reports an error of "command Rsync is not found in path", and the files cannot be synchronized

软件调优方法有哪些?看看飞腾技术专家怎么说 | 龙蜥技术
![[day42 literature intensive reading] a Bayesian model of perfect head centered velocity during smooth pursuit eye movement](/img/28/979dceac1454a3e53409a4feb20320.png)
[day42 literature intensive reading] a Bayesian model of perfect head centered velocity during smooth pursuit eye movement

【万字长文】吃透负载均衡,和阿里大牛的技术面谈

这次龙蜥展区玩的新花样,看看是谁的 DNA 动了?

国内首款开源MySQL原生HTAP数据库即将发布!三大亮点抢先看,限量周边等你来~

Synchronized lock

电子量产项目框架--基本思想

如何更新pip3?和Running pip as the ‘root‘ user can result in broken permissions and conflicting behaviour
随机推荐
Comprehensive cases
【已解决】单点登录成功SSO转发,转发URL中带参数导致报错There was an unexpected error (type=Internal Server Error, status=500)
linux中mysql表名区不区分大小写
C# 事件用法案例 订阅事件+=
擎创科技加入龙蜥社区,共建智能运维平台新生态
杂谈:把肉都烂在锅里就是保障学生权益了?
Solution to automatic disconnection of SSH link of Tencent ECS
kalibr标定realsenseD435i --多相机标定
Abstract factory pattern
Grandson's questions are difficult, and his son's invigilation is strict. I can't do it. Pay back my school money
Bash: sudo: command not found in container
单片机多级菜单
Shell enterprise interview exercise
yhb_ sysbench
增强:BTE流程简介
Harbor正确密码登录不上去
The integrated real-time HTAP database stonedb, how to replace MySQL and achieve nearly 100 times the improvement of analysis performance
存储过程与函数
综合案例、
[QT] unable to open the containing file pcap.h (C1083) in QT creator