CMD pip install error. Exception: Traceback (most recent call last):

0
C:\Users\pcort>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):

I have read that this problem is solved using the command "sudo" in OSX and "runas" in cmd, with the command "sudo" you just have to write "sudo pip install ..." and it works but, how it works the "runas" command? because if you put "runas pip install ..." it does not work

    
asked by Pablo Cortes Rodriguez 29.07.2017 в 19:59
source

1 answer

0

I've tried this and it works well for me:

runas /user:tu_usuario_administrador "pip install virtualenv"

Often you will be asked for the password for tu_usuario_administrador .

Then it remains:

Escriba la contraseña para tu_usuario_administrador:
Intentando iniciar pip install virtualenv como usuario "Nombre_del_equipo\tu_usuario_administrador" ...

And the python window appears installing virtualenv .

A more "real" example would be:

runas /user:Pablo "pip install virtualenv"

Escriba la contraseña para Pablo:
Intentando iniciar pip install virtualenv como usuario "EQUIPO\Pablo" ...

If it did not help, I leave you some links where you can see more of this:

Site: stackoverflow .

Site: technet microsoft

    
answered by 31.07.2017 в 05:07