我目前陷入了一个令人沮丧的问题。这篇文章很长,因为我想尽可能详细。
操作系统:Windows 10。Anaconda 下载版本:Anaconda3-2020.02-Windows-x86_64.exe
我根据指南安装了anaconda。但是找不到 anaconda 提示符和导航器。有很多故障排除,但没有一个解决方案对我有用。
我得到的最接近的是使用:
activate root
conda update -n root conda
conda update --all
anaconda-navigator
但是“anaconda-navigator”让我看到了绿色圆圈加载屏幕和错误:
Traceback (most recent call last):
File "C:\Users\Moritz\anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 377, in _load_unsafe_channels
new_worker.unsafe_channels = info['channels']
TypeError: byte indices must be integers or slices, not str
Traceback (most recent call last):
File "C:\Users\Moritz\anaconda3\lib\site-packages\anaconda_navigator\api\anaconda_api.py", line 382, in _conda_info_processed
base_worker = worker.base_worker
AttributeError: 'ProcessWorker' object has no attribute 'base_worker'
关闭并重新打开控制台后,我再次输入“anaconda-navigator”,得到一个不同的错误:
Traceback (most recent call last):
File "C:\Users\Moritz\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\Moritz\anaconda3\Scripts\anaconda-navigator-script.py", line 6, in <module>
from anaconda_navigator.app.main import main
File "C:\Users\Moritz\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\Moritz\anaconda3\lib\site-packages\anaconda_navigator\utils\__init__.py", line 15, in <module>
from qtpy.QtGui import QIcon
File "C:\Users\Moritz\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
这让我想到了使用“pip install pyqt5”导致错误的想法:
C:\Users\Moritz>pip --version
pip 20.0.2 from C:\Users\Moritz\anaconda3\lib\site-packages\pip (python 3.7)
C:\Users\Moritz>pip install pyqt5
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/pyqt5/
Could not fetch URL https://pypi.org/simple/pyqt5/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyqt5/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
ERROR: Could not find a version that satisfies the requirement pyqt5 (from versions: none)
ERROR: No matching distribution found for pyqt5
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
这个错误也已经讨论过了,应该通过以下方式解决:“python -m pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip “但这在我的情况下根本行不通。
我的系统变量 $PATH 包括 python 所在的 C:\Users\Moritz\anaconda3\Scripts 的目录。它还包括一个 java 路径(有问题?)