Pip installation solution error: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting

1. Problem description

When using pip to install the library and some modules today, an error message appeared:
insert image description here

It probably means: Prompt to run pip as a "root" user may cause permission corruption and conflicts, so we need to create a virtual environment area to execute it

Two, the solution

1. Create a virtual environment

(superset) [root@bigdata111 ~]# python3 -m venv tutorial-env

2. Then execute the following command on the command line

(superset) [root@bigdata111 ~]# source tutorial-env/bin/activate

After such an operation, the virtual environment will be completed, and now the pip installation library will not report an error
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43520450/article/details/129704923