Python 正在尝试使用PyCharm在Mac OS上安装PyQtWebEngine

Python 正在尝试使用PyCharm在Mac OS上安装PyQtWebEngine,python,python-3.x,Python,Python 3.x,我对这个很陌生,不知道该怎么办。在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 modu

我对这个很陌生,不知道该怎么办。在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'
我打了这个:

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?

我不确定我是否理解你的问题,但如果我能回答你我认为你的问题。如果我理解错了,请告诉我。 因此,转到命令提示符并编写:pip install PyQtWebEngine 我认为这不重要,但无论如何要做。 然后,如果您有PyCharm(您所做的)转到文件,然后转到设置。在“设置”中,转到
项目:_____(我不确定我是否理解了你的问题,但如果我能回答你对我的看法,请告诉我我是否理解错了。 因此,转到命令提示符并编写:pip install PyQtWebEngine 我认为这不重要,但无论如何要做。 然后,如果您有PyCharm(您所做的)转到文件,然后转到设置 项目:_______(
% pip install PyQtWebEngine
zsh: command not found: pip