Why are Python builds suddenly not Framework builds when using virtualenv?

后端 未结 5 1196
我寻月下人不归
我寻月下人不归 2020-12-29 15:15

I\'ve installed Python 2.7 as a Framework build on my Mac. I\'ve installed and confirmed that wxPython works with this Python build. But when I create a virtual environment

5条回答
  •  攒了一身酷
    2020-12-29 15:39

    add

    export PYTHONHOME=$VIRTUAL_ENV
    alias python=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3  # set path to ur python
    

    in the end of venv activate script

提交回复
热议问题