py3.6 win10 - 安装virtualenv时出错

时间:2017-01-18 20:33:43

标签: django python-3.x windows-10 virtualenv virtualenvwrapper

刚刚安装了Py3.6,安装了sur pip并尝试安装virtualenv:

pip install virtualenv

这就是结果:

pip install virtualenv
Collecting virtualenv
  Using cached virtualenv-15.1.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Exception:
Traceback (most recent call last):
  File "c:\program files\python36-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\program files\python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "c:\program files\python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "c:\program files\python36-32\lib\site-packages\pip\req\req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "c:\program files\python36-32\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "c:\program files\python36-32\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "c:\program files\python36-32\lib\site-packages\pip\wheel.py", line 323, in clobber
    shutil.copyfile(srcfile, destfile)
  File "c:\program files\python36-32\lib\shutil.py", line 115, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'c:\\program files\\python36-32\\Lib\\site-packages\\virtualenv.py'

当我尝试时发生了同样的事情:

pip install virtualenvwrapper-win

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

您需要从具有管理员权限的命令提示符

运行该命令

在Windows 8和10上,您只需按Windows + X,然后在菜单上选择“命令提示符(管理员)”

这个问题可能是this one.

的副本