我现在真的不知道发生了什么,但我正在尝试在Windows 10笔记本电脑上启动Anaconda Navigator,但它没有启动。我单击该图标,没有任何反应。所以我试图从命令行启动它,这里是输出:
(base) C:\Users\stram\Anaconda3\Scripts>anaconda-navigator
Traceback (most recent call last):
File "C:\Users\stram\Anaconda3\lib\site-packages\qtpy\__init__.py", line 204, in <module>
from PySide import __version__ as PYSIDE_VERSION # analysis:ignore
ModuleNotFoundError: No module named 'PySide'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\stram\Anaconda3\Scripts\anaconda-navigator-script.py", line 6, in <module>
from anaconda_navigator.app.main import main
File "C:\Users\stram\Anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 22, in <module>
from anaconda_navigator.utils.conda import is_conda_available
File "C:\Users\stram\Anaconda3\lib\site-packages\anaconda_navigator\utils\__init__.py", line 15, in <module>
from qtpy.QtGui import QIcon
File "C:\Users\stram\Anaconda3\lib\site-packages\qtpy\__init__.py", line 210, in <module>
raise PythonQtError('No Qt bindings could be found')
qtpy.PythonQtError: No Qt bindings could be found
它有可能缺少某些模块,直到一天前它仍然可以正常工作!我唯一要做的就是更新新版本的Spyder。但是,我尝试安装PySide,但出现以下错误:
(base) C:\Users\stram\Anaconda3\Scripts>pip install -U PySide
Collecting PySide
Using cached https://files.pythonhosted.org/packages/36/ac/ca31db6f2225844d37a41b10615c3d371587677efd074db29855e7035de6/PySide-1.2.4.tar.gz
ERROR: Command errored out with exit status 1:
command: 'C:\Users\stram\Anaconda3\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\stram\\AppData\\Local\\Temp\\pip-install-wv8ecv8t\\PySide\\setup.py'"'"'; __file__='"'"'C:\\Users\\stram\\AppData\\Local\\Temp\\pip-install-wv8ecv8t\\PySide\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\stram\AppData\Local\Temp\pip-install-wv8ecv8t\PySide\pip-egg-info'
cwd: C:\Users\stram\AppData\Local\Temp\pip-install-wv8ecv8t\PySide\
Complete output (1 lines):
only these python versions are supported: [(2, 6), (2, 7), (3, 2), (3, 3), (3, 4)]
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
好像不支持我的python版本:
(base) C:\Users\stram\Anaconda3\Scripts>conda -V
conda 4.8.0
(base) C:\Users\stram\Anaconda3\Scripts>python -V
Python 3.7.6
但是我不知道怎么可能,我不记得更新python了。我应该怎么做,恢复到旧的python版本(3.4)?如果没有其他解决方案,该怎么办?
编辑:我也尝试取消水蟒并重新安装它,但出现相同的错误。
答案 0 :(得分:0)
PySide带有警告,指出它可能无法在python 3.7以及Windows OS上正常工作。您可能必须将conda base中的python版本降级到3.5或3.4。您可以考虑使用python 3.6的PySide2