我正在尝试执行Spyder,但没有打开IDE

时间:2019-03-21 20:29:33

标签: python spyder

我有Windows 7并使用spyder 3.7.1安装anaconda,我试图在cmd上执行spyder,但未执行,这将引发下一个错误 enter image description here

cmd引发下一个错误

C:\Users\Jorge>spyder

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site- 
packages\spyder\utils\external\github.py", line 51, in <module>
from urllib2 import build_opener, HTTPSHandler, Request, HTTPError
ModuleNotFoundError: No module named 'urllib2'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File"C:\ProgramData\Anaconda3\lib\sitepackages\spyder\app\mainwindow.py",
line 3284, in main
mainwindow = run_spyder(app, options, args)
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", 
line 3139, in run_spydermain.setup()
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\app\mainwindow.py", 
line 809, in setup
from spyder.plugins.console import Console
File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\console.py", 
line 37, in <module>
from spyder.widgets.reporterror import SpyderErrorDialog
File "C:\ProgramData\Anaconda3\lib\site- 
packages\spyder\widgets\reporterror.py", line 26, in <module>
from spyder.widgets.github.backend import GithubBackend
File "C:\ProgramData\Anaconda3\lib\site- 
packages\spyder\widgets\github\backend.py", line 33, in <module>
from spyder.utils.external import github
File "C:\ProgramData\Anaconda3\lib\sitepackages\spyder\utils\
external\github.py", line 58, in <module>
from urllib.request import build_opener, HTTPSHandler, HTTPError, Request
ImportError: cannot import name 'HTTPSHandler' from 'urllib.request' 
(C:\ProgramData\Anaconda3\lib\urllib\request.py)

我想知道是否有人对如何解决此问题有看法

0 个答案:

没有答案