0

Py3.6 A peine installé, fait pip sur est installé et essayé d'installer virtualenv avec:py3.6 win10 - erreur installation virtualenv

pip install virtualenv 

Et voici le résultat:

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' 

même chose quand j'ai essayé:

pip install virtualenvwrapper-win 

Des idées?

+0

python -m pip install virtualenv? –

Répondre

0

Vous devez exécuter la commande à partir d'une invite de commande ayant des privilèges d'administrateur

Sur Windows 8 et 10, vous pouvez simplement appuyer sur Windows + X et dans le menu, choisissez « Invite de commandes (Admin) »

Cette question est possiblement une copie de this one.