python 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 environment instead

   

 

   根目录执行 :

    python3 -m venv tutorial-env

然后执行:
source tutorial-env/bin/activate
退出执行:
deactivate
 
posted @ 2022-11-15 18:04  左闯  阅读(1818)  评论(0编辑  收藏  举报