Desinstalar virtualenv, Mac

1

Al intentar ejecutar un comando:

pip uninstall virtualenv

genera un error:

Exception:
Traceback (most recent call last):
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/commands/uninstall.py", line 59, in run
    requirement_set.uninstall(auto_confirm=options.yes)
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1035, in uninstall
    req.uninstall(auto_confirm=auto_confirm)
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 568, in uninstall
    for path in pip.wheel.uninstallation_paths(dist):
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/wheel.py", line 375, in unique
    for item in fn(*args, **kw):
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/wheel.py", line 393, in uninstallation_paths
    r = csv.reader(FakeFile(dist.get_metadata_lines('RECORD')))
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 1369, in get_metadata_lines
    return yield_lines(self.get_metadata(name))
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 1361, in get_metadata
    return self._get(self._fn(self.egg_info,name))
  File "/usr/local/Cellar/python/2.7.8_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg/pip/_vendor/pkg_resources.py", line 1470, in _get
    stream = open(path, 'rb')
IOError: [Errno 2] No such file or directory: '/Library/Python/2.7/site-packages/virtualenv-1.11.6.dist-info/RECORD'

Storing debug log for failure in /var/folders/qn/_rqylh917b33tgzrfm1wy79h0000gn/T/tmpFtrtEX

No tengo ni idea de cómo solucionarlo, comienza a mostrarse cuando intentaba desinstalar paquetes. ¿Alguien sabe cómo resolver el problema?

    
pregunta Max 12.03.2015 - 15:59

1 respuesta

2

Me encontré con el mismo problema. Lo resolví creando un archivo vacío llamado RECORD en el directorio virtualenv .

En mi máquina, el comando para ejecutar en la Terminal era

 touch /usr/local/lib/python2.7/site-packages/virtualenv-1.11.6.dist-info/RECORD

Eso es todo. Después de hacer eso, pip install virtualenv --upgrade trabajó para mí.

    
respondido por el maggix 29.03.2015 - 23:20

Lea otras preguntas en las etiquetas