lnlidawei

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

[ubuntu] pip3-pep668-externally-managed-environment

 

 

 

 

一、解决方法

 

  1、  修改文件:pip.conf([wit@ubuntu:python]$ cat   ~/.pip/pip.conf )

      --  添加:  break-system-packages = true

 

 

 

二、示例

[wit@ubuntu:python]$ cat ~/.pip/pip.conf 
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
break-system-packages = true

[install]
trusted-host=mirrors.aliyun.com

[wit@ubuntu:python]$ 
[wit@ubuntu:python]$ 

 

 

三、参考资料:

 

  1、  https://www.linuxuprising.com/2023/03/next-debianubuntu-releases-will-likely.html?m=1

 

  2、  https://discuss.python.org/t/pep-668-marking-python-base-environments-as-externally-managed/10302

 

posted on 2025-05-23 11:57  lnlidawei  阅读(33)  评论(0)    收藏  举报