python虚拟环境virtualenvwrapper 报错

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路径
  • 结束
    原文作者:jia_yan_chao
    原文地址: https://www.jianshu.com/p/c9102430fd3e
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞