Closed
Description
Issue
After creating a virtualenv with python2 from the Command Line Tools, running the python executable from that virtualenv fails:
% python virtualenv.pyz venv
created virtual environment CPython2.7.16.final.0-64 in 221ms
creator CPython2macOsFramework(dest=/Users/glandium/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/Users/glandium/Library/Application Support/virtualenv)
added seed packages: pip==20.2.2, pip==20.2.4, setuptools==44.1.1, wheel==0.35.1
activators PythonActivator,CShellActivator,FishActivator,PowerShellActivator,BashActivator
% venv/bin/python
zsh: killed venv/bin/python
The problem comes from code signature not matching:
% codesign -v venv/bin/python
venv/bin/python: invalid Info.plist (plist or signature have been modified)
In architecture: x86_64
This doesn't happen with python3.