Defaulting to user installation because normal site-packages is not writeable问题解决

问题描述

在Linux中创建虚拟环境时,使用pip3 install virtualenv时,报

> Defaulting to user installation because normal site-packages is not
writeable

,经搜索改为使用python3 -m install virtualenv或者python3 -m pip install virtualenv后仍然提示:

> Defaulting to user installation because normal site-packages is not
writeable

问题解决:

改为使用python -m virtualenv venv 后,成功创建venv虚拟环境。

你可能感兴趣的:(linux)