I'm trying to open Spyder and I have deleted multiple times the "spyder.lock" folder in user/directory but it doesn't work. This is the error:
File "C:Userspc-aceranaconda3envsEnvTestScriptsspyder-script.py", line 10, in <module>
sys.exit(main())
File "C:Userspc-acerAnaconda3Libsite-packagesspyderappstart.py", line 212, in main
mainwindow.main(options, args)
File "C:Userspc-acerAnaconda3Libsite-packagesspyderappmainwindow.py", line 3685, in main
mainwindow = run_spyder(app, options, args)
File "C:Userspc-acerAnaconda3Libsite-packagesspyderappmainwindow.py", line 3571, in run_spyder
main.setup()
File "C:Userspc-acerAnaconda3Libsite-packagesspyderappmainwindow.py", line 886, in setup
from spyder.plugins.completion.plugin import CompletionManager
File "C:Userspc-acerAnaconda3Libsite-packagesspyderpluginscompletionplugin.py", line 22, in <module>
from spyder.plugins.completion.languageserver.plugin import (
File "C:Userspc-acerAnaconda3Libsite-packagesspyderpluginscompletionlanguageserverplugin.py", line 31, in <module>
from spyder.plugins.completion.languageserver.confpage import (
File "C:Userspc-acerAnaconda3Libsite-packagesspyderpluginscompletionlanguageserverconfpage.py", line 31, in <module>
from spyder.plugins.completion.languageserver.widgets.snippetsconfig import (
File "C:Userspc-acerAnaconda3Libsite-packagesspyderpluginscompletionlanguageserverwidgetssnippetsconfig.py", line 17, in <module>
from jsonschema import validate as json_validate
File "C:Userspc-acerAnaconda3Libsite-packagesjsonschema\__init__.py", line 34, in <module>
__version__ = metadata.version("jsonschema")
File "C:Userspc-aceranaconda3envsEnvTestlibimportlibmetadata.py", line 531, in version
return distribution(distribution_name).version
File "C:Userspc-aceranaconda3envsEnvTestlibimportlibmetadata.py", line 236, in version
return self.metadata['Version']
File "C:Userspc-aceranaconda3envsEnvTestlibimportlibmetadata.py", line 224, in metadata
self.read_text('METADATA')
File "C:Userspc-aceranaconda3envsEnvTestlibimportlibmetadata.py", line 491, in read_text
return self._path.joinpath(filename).read_text(encoding='utf-8')
AttributeError: 'WindowsPath' object has no attribute 'read_text'
I don't know what i have to do. Please help!
question from:
https://stackoverflow.com/questions/65849423/anaconda-spyder-doesnt-launch 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…