我对此很陌生,不知道该怎么做。在 PyCharm 中运行文件时,我收到此消息:
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/aqt/qt.py", line 16, in <module>
from PyQt5.QtWebEngineWidgets import * # type: ignore
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'
所以我去了文件夹:
/Library/Frameworks/Python.framework/Versions/3.8
我输入了这个:
python get-pip.py
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
Using cached pip-20.1-py2.py3-none-any.whl (1.5 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 20.1
Uninstalling pip-20.1:
Successfully uninstalled pip-20.1
WARNING: The scripts pip, pip2 and pip2.7 are installed in '/Users/al/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
NOTE: The current PATH contains path(s) starting with `~`, which may not be expanded by all applications.
并试图输入这个:
% pip install PyQtWebEngine
zsh: command not found: pip
任何人都可以就我做错了什么以及为什么即使我在 3.8 文件夹中它使用 Python 2 给我建议吗?
素胚勾勒不出你
相关分类