mkvirtualenv test
mkvirtualenv:78: /usr/local/bin/virtualenv: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory
解决方法
- 检查本地安装的python路径
- 替换
/usr/local/bin/virtualenv
的以 #!开头的首行为自己的python路径 - 结束
mkvirtualenv test
mkvirtualenv:78: /usr/local/bin/virtualenv: bad interpreter: /usr/local/opt/python/bin/python2.7: no such file or directory
/usr/local/bin/virtualenv
的以 #!开头的首行为自己的python路径