HomeBrew Mac change Python Path

后端 未结 2 1279
离开以前
离开以前 2021-02-15 13:03

I am trying to install PyQT and I used PyQT. Is has been installed using home brew. But When I try to import it, python can\'t. I get the following warning in Home brew. I am ne

2条回答
  •  忘了有多久
    2021-02-15 14:05

    You should edit ~/.bash_profile (create the file if it does not exist) to set the PYTHONPATH environment variable:

    export PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages:$PYTHONPATH
    

提交回复
热议问题