Spyder打不开了怎么办,先不要慌。在Anaconda Prompt 终端输入:spyder —new–instance
spyder --new-instance
Traceback (most recent call last):
File “C:UsersgeAnaconda3Scriptsspyder–script.py“, line 5, in <module>
sys.exit(spyder.app.start.main())
File “C:UsersgeAnaconda3libsite–packagesspyderappstart.py“, line 114, in main
from spyder.app import mainwindow
File “C:UsersgeAnaconda3libsite–packagesspyderappmainwindow.py“, line 162, in <module>
from spyder.utils.environ import WinUserEnvDialog
File “C:UsersgeAnaconda3libsite–packagesspyderutilsenviron.py“, line 20, in <module>
from spyder.widgets.variableexplorer.collectionseditor import CollectionsEditor
File “C:UsersgeAnaconda3libsite–packagesspyderwidgetsvariableexplorercollectionseditor.py”, line 46, in <module>
from spyder.widgets.variableexplorer.importwizard import ImportWizard
File “C:UsersgeAnaconda3libsite–packagesspyderwidgetsvariableexplorerimportwizard.py”, line 26, in <module>
import pandas as pd
File “C:UsersgeAnaconda3libsite–packagespandas__init__.py”, line 39, in <module>
from pandas.core.api import *
File “C:UsersgeAnaconda3libsite–packagespandascoreapi.py”, line 10, in <module>
from pandas.core.groupby import Grouper
File “C:UsersgeAnaconda3libsite-packagespandascoregroupby.py”, line 40, in <module>
from pandas.core.frame import DataFrame
File “C:UsersgeAnaconda3libsite-packagespandascoreframe.py”, line 72, in <module>
from pandas.core.series import Series
File “C:UsersgeAnaconda3libsite-packagespandascoreseries.py”, line 51, in <module>
import pandas.core.strings as strings
AttributeError: module ‘pandas’ has no attribute ‘core’
Traceback (most recent call last):
File "C:UsersgeAnaconda3Scriptsspyder-script.py", line 5, in <module>
sys.exit(spyder.app.start.main())
File "C:UsersgeAnaconda3libsite-packagesspyderappstart.py", line 114, in main
from spyder.app import mainwindow
File "C:UsersgeAnaconda3libsite-packagesspyderappmainwindow.py", line 162, in <module>
from spyder.utils.environ import WinUserEnvDialog
File "C:UsersgeAnaconda3libsite-packagesspyderutilsenviron.py", line 20, in <module>
from spyder.widgets.variableexplorer.collectionseditor import CollectionsEditor
File "C:UsersgeAnaconda3libsite-packagesspyderwidgetsvariableexplorercollectionseditor.py", line 46, in <module>
from spyder.widgets.variableexplorer.importwizard import ImportWizard
File "C:UsersgeAnaconda3libsite-packagesspyderwidgetsvariableexplorerimportwizard.py", line 26, in <module>
import pandas as pd
File "C:UsersgeAnaconda3libsite-packagespandas__init__.py", line 39, in <module>
from pandas.core.api import *
File "C:UsersgeAnaconda3libsite-packagespandascoreapi.py", line 10, in <module>
from pandas.core.groupby import Grouper
File "C:UsersgeAnaconda3libsite-packagespandascoregroupby.py", line 40, in <module>
from pandas.core.frame import DataFrame
File "C:UsersgeAnaconda3libsite-packagespandascoreframe.py", line 72, in <module>
from pandas.core.series import Series
File "C:UsersgeAnaconda3libsite-packagespandascoreseries.py", line 51, in <module>
import pandas.core.strings as strings
AttributeError: module 'pandas' has no attribute 'core'
抛出AttributeError: module ‘pandas’ has no attribute ‘core’
这时可以把pandas先卸载,进入spyder要紧。输入命令:
pip uninstall pandas
删掉之后发现可以打开spyder了,再把pandas装回来:
pip install pandas
运气好的话安装pandas一次成功不报错,但是我这里抛出
Installing collected packages: pytz, python–dateutil, pandas
Attempting uninstall: pytz
WARNING: Ignoring invalid distribution -atplotlib (c:usersgeanaconda3libsite-packages)
Found existing installation: pytz 2016.10
ERROR: Cannot uninstall ‘pytz’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
显示pytz卸载不了,pytz是很多库的依赖项,想要卸载pytz可以在Anaconda3Libsite-packages下找到pytz-2016.6.1-py3.5.egg–info去手动卸载
这时安装pandas就不会报错了
回到spyder
spyder是可以打开了,但是弹出这个弹窗
重装nbconvert就好了
原文地址:https://blog.csdn.net/m0_62814033/article/details/124871209
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.7code.cn/show_31190.html
如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱:suwngjj01@126.com进行投诉反馈,一经查实,立即删除!