Cuando traté de crear un entorno virtual con python usando el comando virtualenv venv de Terminal, recibí el siguiente error:
Using base prefix '/Users/zacharythomas/anaconda3' New python executable in /Users/zacharythomas/venv/bin/python dyld: Library not loaded: @rpath/libpython3.6m.dylib Referenced from: /Users/zacharythomas/venv/bin/python Reason: image not found ERROR: The executable /Users/zacharythomas/venv/bin/python is not functioning ERROR: It thinks sys.prefix is '/Users/zacharythomas' (should be '/Users/zacharythomas/venv') ERROR: virtualenv is not compatible with this system or executableNo soy la primera persona en encontrar un error similar. Intenté seguir las recomendaciones de esta respuesta y ejecutar:
gfind ~/.virtualenvs/my-virtual-env/ -type l -xtype l -delete Eso no ayudó. Tampoco sudo virtualenv venv para ejecutar el comando como superusuario.
¿Qué debo investigar a continuación?
Tuve exactamente el mismo mensaje de error. Ray Donnelly en Continuum Analytics Support Group proporcionó la siguiente solución, que me resolvió el problema:
Cuando pip instaló virtualenvwrapper, pip habrá instalado virtualenv por usted, ya que es una dependencia. Desafortunadamente, ese virtualenv no es compatible con Anaconda Python. Afortunadamente, Anaconda Distribution tiene un virtualenv que es compatible. Para arreglar esto:
pip uninstall virtualenv conda install virtualenv
no puedo hacer que virtualenv funcione con anaconda3 v4.3 en mac