How do you correct Module already loaded UserWarnings in Python?

后端 未结 5 615
星月不相逢
星月不相逢 2021-01-01 16:48

Getting the following kinds of warnings when running most python scripts in the command line:

/Library/Python/2.6/site-packages/virtualenvwrapper/hook_loader         


        
5条回答
  •  情书的邮戳
    2021-01-01 17:11

    In my case reinstalling of anything did not help. There were some orphaned .pyc files (specifically pkg_resources.pyc) left in /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python

    sudo find . -type f -name "*.pyc" -delete
    

    made it work. This link helped me to track down the problem.

提交回复
热议问题