我想用sudo权限在一行中创建新的virtualenv,例如:
sudo su -c "virtualenv -p ../python/bin/python --system-site-packages /home/test/venv"
输出在以下位置停止循环
:Running virtualenv with interpreter /apps/sspt/common/python/bin/python
New python executable in /home/aplabsspt/venv/bin/python
Installing setuptools, pip, wheel...
单独执行命令时,它会起作用!
sudo su -
virtualenv -p ../python/bin/python --system-site-packages /home/test/venv