私はこれに非常に慣れておらず、何をすべきかわかりません。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を使用しているのですか?
私はあなたの質問を理解したかどうかはわかりませんが、私があなたに答えるとしたら、あなたが言っていると思います。間違って理解できたら教えてください。したがって、コマンドプロンプトに移動して次のように記述します。pipinstallPyQtWebEngine重要ではないと思いますが、とにかく実行します。次に、PyCharm(何をするか)がある場合は、[ファイル]、[設定]の順に移動します。設定で、Project:_______(<-プロジェクトの名前)に移動します。その左側の矢印を押します。次に、ProjectInterpreterに移動してクリックします。ここに、プログラムのインストール済みパッケージがすべて表示されます。したがって、PyQtWebEngineはありません。右側の+ボタンに移動します。次に、必要なパッケージ(現在はPyQtWebEngine)を検索して、それを押す必要があります。次に、そのウィンドウのすぐ下に「パッケージのインストール」ボタンが表示され、それを押します。しばらくすると(時間はコンピュータによって異なります)、インストールされます。そこにないすべてのパッケージをインストールできます。わからない、多分それは私だけですが、万が一の場合に備えて、これは私がまだあなたに伝えたくないことです:あなたが新しいものを始めるならば、あなたはいつも(あなたがインストールしなければならない)パッケージを再びインストールしなければならないかもしれません事業。私があなたの問題を解決したことを願っています:)
この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。
侵害の場合は、連絡してください[email protected]
コメントを追加