Python 我能';t安装virtualenv

Python 我能';t安装virtualenv,python,flask,virtualenv,Python,Flask,Virtualenv,当我尝试在上的命令提示符中安装virtualenv时,会显示此信息 Microsoft Windows[版本10.0.17763.344](c)2018年微软公司。 C:\Users\User>**pip install virtualenv** Collecting virtualenv Using cached https://files.pythonhosted.org/packages/05/f1/2e07e8ca50e047b9cc9ad56cf4291f4e041fa7

当我尝试在上的命令提示符中安装virtualenv时,会显示此信息
Microsoft Windows[版本10.0.17763.344](c)2018年微软公司。

C:\Users\User>**pip install virtualenv**
  Collecting virtualenv
  Using cached https://files.pythonhosted.org/packages/05/f1/2e07e8ca50e047b9cc9ad56cf4291f4e041fa73207d000a095fe478abf84/virtualenv-16.7.9-py2.py3-none-any.whl
  Installing collected packages: virtualenv
  **ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'c:\\program files\\python38\\Lib\\site-packages\\virtualenv.py'
           Consider using the `--user` option or check the permissions.**

  WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
  You should consider upgrading via the 'python -m pip install --upgrade pip' command.

在运行命令之前,以管理员身份打开命令提示符。program files目录受保护不受修改,需要管理员权限才能修改。

您是否拥有命令promt中的管理员权限???

您不需要再安装virtualenv了:因为Python 3.3将其捆绑为标准安装的一部分,您只需调用
python-mvenv
,这相当于旧的
virtualenv
调用

有一些平台将其拆分(以及
EnsureIP
),但由于您在windows上,并且可能使用了官方ish安装程序,因此应该提供该安装程序。

“考虑使用--user选项”没有帮助吗?