pip报错

出现报错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 envir...

出现报错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

以“root”用户运行pip可能导致权限中断,可以尝试使用虚拟环境


1,创建环境

python3 -m venv tutorial-env

如出现报错则先运行 apt install python3.10-venv安装一下包再创建环境

2,激活虚拟系统

source tutorial-env/bin/activate

3,使用pip更新软件



















原文链接:https://blog.csdn.net/weixin_67503304/article/details/125397132

  • 发表于 2022-12-05 16:42
  • 阅读 ( 2436 )
  • 分类:软件工具

相关问题

0 条评论

请先 登录 后评论
xun
xun

电路元件工程师

68 篇文章

作家榜 »

  1. omicsgene 658 文章
  2. 安生水 328 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. xun 68 文章
  8. rzx 67 文章