1. Problem description
When using pip to install the library and some modules today, an error message appeared:
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