[Compatible] debugging AttributeError: 'NoneType' object has no attribute 'loader'

anaconda I updated it after being given below

Error processing line 1 of E:\envs\anaconda3\envs\tfenv\lib\site-packages\zope.interface-4.6.0-py3.6-nspkg.pth:
  
Traceback (most recent call last):
    File "E:\envs\anaconda3\envs\tfenv\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
    File "<frozen importlib._bootstrap>", line 568, in module_from_spec
  AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored

Whether any scripts run even being given the command line, too, although normal operation, but do not know why, then Baidu google stackoverflow for a long time did not result. . . .

After lunch, rest a bit (moderate to relax look is still very important) suddenly found zope.interface, I checked this is the python interface, need to use a similar interface functionality through third-party extensions, are generally Zope. interface.

? ? Is the problem here ............ here? ? ? This? ? ?

Otherwise, reinstall it and see pretty? ? ? ? ?

conda uninstall zope.interface
conda install zope.interface

………………………………

……………………

solved……

..... crooked Day

 

Description attach zope.interface of  https://www.cnblogs.com/imyalost/p/8598343.html

 

And, if installed gensim after the fail loaded, I do not like silly to update conda and conda update --all, uninstall, and then honestly put gensim dependent scipy numpy and reinstall it after installing gensim ...

Published 63 original articles · won praise 13 · views 40000 +

Guess you like

Origin blog.csdn.net/changreal/article/details/96856628