M
M
Mr.nobody2017-10-04 19:36:21
Django
Mr.nobody, 2017-10-04 19:36:21

Error installing virtualenvwrapper Error 13 permission denied?

Hello. OS Windows 8.1. I'm trying to install virtualenvwrapper to install Django as instructed . An error. As I understand it, the installation was successful, but there is no permission or access, I don’t understand what, please tell me. The system also has VS 2017 with Anaconda3 installed.

C:\Users\UserRuslan>pip install virtualenvwrapper-win
Collecting virtualenvwrapper-win
  Downloading virtualenvwrapper-win-1.2.2.tar.gz
Collecting virtualenv (from virtualenvwrapper-win)
  Using cached virtualenv-15.1.0-py2.py3-none-any.whl
Building wheels for collected packages: virtualenvwrapper-win
  Running setup.py bdist_wheel for virtualenvwrapper-win ... done
  Stored in directory: C:\Users\UserRuslan\AppData\Local\pip\Cache\wheels\37\ef\32\563bbf605a7a60268d6585a942660e77ab6abf40d4
3c1abf3a
Successfully built virtualenvwrapper-win
Installing collected packages: virtualenv, virtualenvwrapper-win
Exception:
Traceback (most recent call last):
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_set.py", line 784, in install
    **kwargs
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\req\req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "C:\Python\Python36-32\lib\site-packages\pip-9.0.1-py3.6.egg\pip\wheel.py", line 323, in clobber
    shutil.copyfile(srcfile, destfile)
  File "C:\Program Files\Anaconda3\lib\shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Anaconda3\\Lib\\site-packages\\virtualenv.py'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Simon Osipov, 2017-10-04
@SimonOsipov

The problem occurs because pip is trying to install "system wide", i.e. for all users. Use the --user flag:
pip install --user virtualenvwrapper-win

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question