首页 > 解决方案 > 无法安装 spyder

问题描述

我正在尝试从我之前做过几次的 pip install 安装 Spyder。但是,我似乎无法再安装它了。当我尝试安装它时,我收到以下消息。

编辑:添加了完整消息

Microsoft Windows [Version 10.0.18363.1256]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\MRCH.COWI>pip install spyder
Collecting spyder
  Using cached spyder-4.2.1-py3-none-any.whl (10.9 MB)
Requirement already satisfied: qdarkstyle>=2.8 in c:\program files\python37\lib\site-packages (from spyder) (2.8)
Requirement already satisfied: pyqt5<5.13 in c:\program files\python37\lib\site-packages (from spyder) (5.12.3)
Requirement already satisfied: qtpy>=1.5.0 in c:\program files\python37\lib\site-packages (from spyder) (1.9.0)
Requirement already satisfied: nbconvert>=4.0 in c:\program files\python37\lib\site-packages (from spyder) (5.6.1)
Requirement already satisfied: intervaltree>=3.0.2 in c:\program files\python37\lib\site-packages (from spyder) (3.0.2)
Requirement already satisfied: paramiko>=2.4.0 in c:\program files\python37\lib\site-packages (from spyder) (2.7.1)
Requirement already satisfied: atomicwrites>=1.2.0 in c:\program files\python37\lib\site-packages (from spyder) (1.3.0)
Requirement already satisfied: sphinx>=0.6.6 in c:\program files\python37\lib\site-packages (from spyder) (2.3.1)
Requirement already satisfied: diff-match-patch>=20181111 in c:\program files\python37\lib\site-packages (from spyder) (20181111)
Requirement already satisfied: cloudpickle>=0.5.0 in c:\program files\python37\lib\site-packages (from spyder) (1.2.2)
Requirement already satisfied: pyqtwebengine<5.13 in c:\program files\python37\lib\site-packages (from spyder) (5.12.1)
Requirement already satisfied: qtawesome>=0.5.7 in c:\program files\python37\lib\site-packages (from spyder) (0.6.1)
Requirement already satisfied: psutil>=5.3 in c:\program files\python37\lib\site-packages (from spyder) (5.6.7)
Requirement already satisfied: numpydoc>=0.6.0 in c:\program files\python37\lib\site-packages (from spyder) (0.9.2)
Requirement already satisfied: pexpect>=4.4.0 in c:\program files\python37\lib\site-packages (from spyder) (4.8.0)
Requirement already satisfied: pylint>=1.0 in c:\program files\python37\lib\site-packages (from spyder) (2.4.4)
Requirement already satisfied: keyring>=17.0.0 in c:\program files\python37\lib\site-packages (from spyder) (21.1.0)
Requirement already satisfied: pickleshare>=0.4 in c:\program files\python37\lib\site-packages (from spyder) (0.7.5)
Requirement already satisfied: setuptools>=39.0.0 in c:\program files\python37\lib\site-packages (from spyder) (40.8.0)
Requirement already satisfied: pygments>=2.0 in c:\program files\python37\lib\site-packages (from spyder) (2.5.2)
Requirement already satisfied: jsonschema>=3.2.0 in c:\program files\python37\lib\site-packages (from spyder) (3.2.0)
Requirement already satisfied: pyzmq>=17 in c:\program files\python37\lib\site-packages (from spyder) (18.1.1)
Requirement already satisfied: ipython>=7.6.0 in c:\program files\python37\lib\site-packages (from spyder) (7.12.0)
Requirement already satisfied: chardet>=2.0.0 in c:\program files\python37\lib\site-packages (from spyder) (3.0.4)
Collecting jedi==0.17.2
  Using cached jedi-0.17.2-py2.py3-none-any.whl (1.4 MB)
Collecting parso==0.7.0
  Using cached parso-0.7.0-py2.py3-none-any.whl (100 kB)
Requirement already satisfied: sortedcontainers<3.0,>=2.0 in c:\program files\python37\lib\site-packages (from intervaltree>=3.0.2->spyder) (2.1.0)
Requirement already satisfied: traitlets>=4.2 in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (4.3.3)
Requirement already satisfied: decorator in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (4.4.1)
Requirement already satisfied: colorama in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (0.4.3)
Requirement already satisfied: prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0 in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (3.0.3)
Requirement already satisfied: backcall in c:\program files\python37\lib\site-packages (from ipython>=7.6.0->spyder) (0.1.0)
Requirement already satisfied: importlib-metadata in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (1.5.0)
Requirement already satisfied: attrs>=17.4.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (19.3.0)
Requirement already satisfied: pyrsistent>=0.14.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (0.15.7)
Requirement already satisfied: six>=1.11.0 in c:\program files\python37\lib\site-packages (from jsonschema>=3.2.0->spyder) (1.14.0)
Requirement already satisfied: pywin32-ctypes!=0.1.0,!=0.1.1 in c:\program files\python37\lib\site-packages (from keyring>=17.0.0->spyder) (0.2.0)
Requirement already satisfied: defusedxml in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.6.0)
Requirement already satisfied: bleach in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (3.1.0)
Requirement already satisfied: jinja2>=2.4 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (2.11.1)
Requirement already satisfied: pandocfilters>=1.4.1 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (1.4.2)
Requirement already satisfied: nbformat>=4.4 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (5.0.4)
Requirement already satisfied: jupyter-core in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (4.6.1)
Requirement already satisfied: testpath in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.4.4)
Requirement already satisfied: mistune<2,>=0.8.1 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.8.4)
Requirement already satisfied: entrypoints>=0.2.2 in c:\program files\python37\lib\site-packages (from nbconvert>=4.0->spyder) (0.3)
Requirement already satisfied: MarkupSafe>=0.23 in c:\program files\python37\lib\site-packages (from jinja2>=2.4->nbconvert>=4.0->spyder) (1.1.1)
Requirement already satisfied: ipython-genutils in c:\program files\python37\lib\site-packages (from nbformat>=4.4->nbconvert>=4.0->spyder) (0.2.0)
Requirement already satisfied: pynacl>=1.0.1 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (1.3.0)
Requirement already satisfied: cryptography>=2.5 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (2.8)
Requirement already satisfied: bcrypt>=3.1.3 in c:\program files\python37\lib\site-packages (from paramiko>=2.4.0->spyder) (3.1.7)
Requirement already satisfied: cffi>=1.1 in c:\program files\python37\lib\site-packages (from bcrypt>=3.1.3->paramiko>=2.4.0->spyder) (1.13.2)
Requirement already satisfied: pycparser in c:\program files\python37\lib\site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=2.4.0->spyder) (2.19)
Requirement already satisfied: ptyprocess>=0.5 in c:\program files\python37\lib\site-packages (from pexpect>=4.4.0->spyder) (0.6.0)
Requirement already satisfied: wcwidth in c:\program files\python37\lib\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython>=7.6.0->spyder) (0.1.8)
Requirement already satisfied: mccabe<0.7,>=0.6 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (0.6.1)
Requirement already satisfied: isort<5,>=4.2.5 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (4.3.21)
Requirement already satisfied: astroid<2.4,>=2.3.0 in c:\program files\python37\lib\site-packages (from pylint>=1.0->spyder) (2.3.3)
Requirement already satisfied: lazy-object-proxy==1.4.* in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.4.3)
Requirement already satisfied: wrapt==1.11.* in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.11.2)
Requirement already satisfied: typed-ast<1.5,>=1.4.0 in c:\program files\python37\lib\site-packages (from astroid<2.4,>=2.3.0->pylint>=1.0->spyder) (1.4.1)
Collecting pyls-black>=0.4.6
  Using cached pyls_black-0.4.6-py3-none-any.whl (4.2 kB)
Requirement already satisfied: python-language-server in c:\program files\python37\lib\site-packages (from pyls-black>=0.4.6->spyder) (0.31.9)
Collecting black>=19.3b0
  Using cached black-20.8b1.tar.gz (1.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting click>=7.1.2
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting mypy-extensions>=0.4.3
  Using cached mypy_extensions-0.4.3-py2.py3-none-any.whl (4.5 kB)
Collecting pathspec<1,>=0.6
  Using cached pathspec-0.8.1-py2.py3-none-any.whl (28 kB)
Collecting pyls-spyder>=0.3.0
  Using cached pyls_spyder-0.3.0-py2.py3-none-any.whl (8.1 kB)
Requirement already satisfied: PyQt5_sip<13,>=4.19.14 in c:\program files\python37\lib\site-packages (from pyqt5<5.13->spyder) (12.7.1)
Collecting python-language-server[all]<1.0.0,>=0.36.2
  Using cached python_language_server-0.36.2-py2.py3-none-any.whl (51 kB)
Requirement already satisfied: pluggy in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.13.1)
Collecting python-jsonrpc-server>=0.4.0
  Using cached python_jsonrpc_server-0.4.0-py3-none-any.whl (8.9 kB)
Requirement already satisfied: autopep8 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (1.5)
Requirement already satisfied: yapf in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.29.0)
Requirement already satisfied: pydocstyle>=2.0.0 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (5.0.2)
Requirement already satisfied: rope>=0.10.5 in c:\program files\python37\lib\site-packages (from python-language-server[all]<1.0.0,>=0.36.2->spyder) (0.16.0)
Collecting flake8>=3.8.0
  Using cached flake8-3.8.4-py2.py3-none-any.whl (72 kB)
Collecting pycodestyle<2.7.0,>=2.6.0
  Using cached pycodestyle-2.6.0-py2.py3-none-any.whl (41 kB)
Requirement already satisfied: snowballstemmer in c:\program files\python37\lib\site-packages (from pydocstyle>=2.0.0->python-language-server[all]<1.0.0,>=0.36.2->spyder) (2.0.0)
Collecting pyflakes<2.3.0,>=2.2.0
  Using cached pyflakes-2.2.0-py2.py3-none-any.whl (66 kB)
Collecting pylint>=1.0
  Using cached pylint-2.6.0-py3-none-any.whl (325 kB)
  Using cached pylint-2.5.3-py3-none-any.whl (324 kB)
  Using cached pylint-2.5.2-py3-none-any.whl (324 kB)
  Using cached pylint-2.5.1-py3-none-any.whl (324 kB)
  Using cached pylint-2.5.0-py3-none-any.whl (324 kB)
INFO: pip is looking at multiple versions of pyflakes to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydocstyle to determine which version is compatible with other requirements. This could take a while.
Collecting pydocstyle>=2.0.0
  Using cached pydocstyle-5.1.1-py3-none-any.whl (35 kB)
  Using cached pydocstyle-5.1.0-py3-none-any.whl (35 kB)
  Using cached pydocstyle-5.0.1-py3-none-any.whl (35 kB)
  Using cached pydocstyle-5.0.0-py3-none-any.whl (35 kB)
  Using cached pydocstyle-4.0.1-py3-none-any.whl (33 kB)
  Using cached pydocstyle-4.0.0-py3-none-any.whl (33 kB)
  Using cached pydocstyle-3.0.0-py3-none-any.whl (33 kB)
INFO: pip is looking at multiple versions of pyflakes to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pydocstyle to determine which version is compatible with other requirements. This could take a while.
  Using cached pydocstyle-2.1.1-py3-none-any.whl (31 kB)
  Using cached pydocstyle-2.1.0-py2.py3-none-any.whl (31 kB)
  Using cached pydocstyle-2.0.0-py2.py3-none-any.whl (30 kB)
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flake8 to determine which version is compatible with other requirements. This could take a while.
Collecting flake8>=3.8.0
  Using cached flake8-3.8.3-py2.py3-none-any.whl (72 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Using cached flake8-3.8.2-py2.py3-none-any.whl (72 kB)
  Using cached flake8-3.8.1-py2.py3-none-any.whl (72 kB)
  Using cached flake8-3.8.0-py2.py3-none-any.whl (72 kB)
INFO: pip is looking at multiple versions of python-language-server[all] to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-jsonrpc-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-language-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyrsistent to determine which version is compatible with other requirements. This could take a while.
Collecting pyrsistent>=0.14.0
  Using cached pyrsistent-0.17.3.tar.gz (106 kB)
INFO: pip is looking at multiple versions of pycodestyle to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of flake8 to determine which version is compatible with other requirements. This could take a while.
  Using cached pyrsistent-0.16.1.tar.gz (108 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Using cached pyrsistent-0.16.0.tar.gz (108 kB)
  Using cached pyrsistent-0.15.6.tar.gz (107 kB)
  Using cached pyrsistent-0.15.5.tar.gz (107 kB)
  Using cached pyrsistent-0.15.4.tar.gz (107 kB)
  Using cached pyrsistent-0.15.3.tar.gz (106 kB)
INFO: pip is looking at multiple versions of python-language-server[all] to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-jsonrpc-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of python-language-server to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of pyrsistent to determine which version is compatible with other requirements. This could take a while.
  Using cached pyrsistent-0.15.2.tar.gz (106 kB)
  Using cached pyrsistent-0.15.1.tar.gz (106 kB)
  Using cached pyrsistent-0.15.0.tar.gz (105 kB)
  Using cached pyrsistent-0.14.11.tar.gz (104 kB)
  Using cached pyrsistent-0.14.10.tar.gz (104 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Using cached pyrsistent-0.14.9.tar.gz (104 kB)
  Using cached pyrsistent-0.14.8.tar.gz (104 kB)
  Using cached pyrsistent-0.14.7.tar.gz (103 kB)
  Using cached pyrsistent-0.14.6.tar.gz (100 kB)
  Using cached pyrsistent-0.14.5.tar.gz (99 kB)
  Using cached pyrsistent-0.14.4.tar.gz (98 kB)
  Using cached pyrsistent-0.14.3.tar.gz (98 kB)
  Using cached pyrsistent-0.14.2.tar.gz (97 kB)
  Using cached pyrsistent-0.14.1.tar.gz (97 kB)
  Using cached pyrsistent-0.14.0.tar.gz (96 kB)
INFO: pip is looking at multiple versions of pyqtwebengine to determine which version is compatible with other requirements. This could take a while.
Collecting pyqtwebengine<5.13
  Using cached PyQtWebEngine-5.12-5.12.1-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.8 MB)
INFO: pip is looking at multiple versions of pyqt5-sip to determine which version is compatible with other requirements. This could take a while.
Collecting PyQt5_sip<13,>=4.19.14
  Using cached PyQt5_sip-12.8.1-cp37-cp37m-win_amd64.whl (62 kB)
  Using cached PyQt5_sip-12.8.0-cp37-cp37m-win_amd64.whl (62 kB)
  Using cached PyQt5_sip-12.7.2-cp37-cp37m-win_amd64.whl (58 kB)
INFO: pip is looking at multiple versions of pyqtwebengine to determine which version is compatible with other requirements. This could take a while.
  Using cached PyQt5_sip-12.7.0-cp37-cp37m-win_amd64.whl (58 kB)
  Using cached PyQt5_sip-4.19.19-cp37-none-win_amd64.whl (52 kB)
  Using cached PyQt5_sip-4.19.18-cp37-none-win_amd64.whl (51 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Using cached PyQt5_sip-4.19.17-cp37-none-win_amd64.whl (51 kB)
INFO: pip is looking at multiple versions of pyqt5-sip to determine which version is compatible with other requirements. This could take a while.
  Using cached PyQt5_sip-4.19.15-cp37-none-win_amd64.whl (51 kB)
  Using cached PyQt5_sip-4.19.14-cp37-none-win_amd64.whl (51 kB)
INFO: pip is looking at multiple versions of pyqt5 to determine which version is compatible with other requirements. This could take a while.
Collecting pyqt5<5.13
  Using cached PyQt5-5.12.2-5.12.3-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.5 MB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. If you want to abort this run, you can press Ctrl + C to do so. To improve how pip performs, tell us what happened here: https://pip.pypa.io/surveys/backtracking
  Using cached PyQt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (47.4 MB)
  Using cached PyQt5-5.12-5.12.1_a-cp35.cp36.cp37.cp38-none-win_amd64.whl (49.4 MB)
  Using cached PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-none-win_amd64.whl (93.4 MB)
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\base_command.py", line 224, in _main
    status = self.run(options, args)
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\cli\req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\commands\install.py", line 321, in run
    reqs, check_supported_wheels=not options.target_dir
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 122, in resolve
    requirements, max_rounds=try_to_avoid_resolution_too_deep,
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 445, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 325, in resolve
    for item in self.state.criteria.items()
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 326, in <listcomp>
    if not self._is_current_pin_satisfying(*item)
  File "C:\Users\MRCH.COWI\AppData\Roaming\Python\Python37\site-packages\pip\_vendor\resolvelib\resolvers.py", line 193, in _is_current_pin_satisfying
    for r in criterion.iter_requirement()
AttributeError: 'NoneType' object has no attribute 'iter_requirement'

C:\Users\MRCH.COWI>

我正在使用 Python 3.7.4

..................................................... ..................................................... ......

标签: pythonpipspyder

解决方案


安装pyqt5:

pip install pyqt5

安装 spyder:

pip install spyder

如果这不起作用,请尝试使用pip3


推荐阅读