After installing Anaconda, I get constant “KeyError: 'PYTHONPATH'” messages

前端 未结 2 1236
自闭症患者
自闭症患者 2021-02-01 23:54

After installing Anaconda for Python 3.4 on my Mac I get constant messages saying:

Error in sitecustomize; set PYTHONVERBOSE for traceback: 
KeyError: \'PYTHONP         


        
2条回答
  •  抹茶落季
    2021-02-02 00:18

    If your PYTHONPATH environment variable is set, unset it. You can check with echo $PYTHONPATH. If it is set it is probably coming from something in ~/.profile or ~/.bash_profile.

    The issue is the file /usr/local/lib/python2.7/site-packages/sitecustomize.py. You may want to check what that file is and where it comes from, but removing it should fix the problem.

提交回复
热议问题