0

我是新手。对不起,混乱。

我一直在尝试安装 PyQtWebEngin,首先在与 Windows10 一起双启动的 zorin os 上,它失败了。然后我决定将它安装在 Windows10 内 VM 上的 Linux Mint 上。错误结果总是一样的。

来看看,

poo@poo:~/Downloads$ pip3 install PyQtWebEngine
Collecting PyQtWebEngine
  Using cached https://files.pythonhosted.org/packages/71/be/cd5243a456aae37788eebd8333d2326fd830de7ce1f1ac6618e966a66862/PyQtWebEngine-5.14.0-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl
Collecting PyQt5-sip<13,>=12.7 (from PyQtWebEngine)
  Using cached https://files.pythonhosted.org/packages/69/d2/92d85b0865fe68755488a30eec1c2b1b14da6c96c74441dc1c88e0659397/PyQt5_sip-12.7.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting PyQt5>=5.14 (from PyQtWebEngine)
  Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-3tqr21z4/PyQt5/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-3tqr21z4/PyQt5/

你们能帮帮我吗。

提前致谢。

4

1 回答 1

1

pip似乎正在尝试使用源代码分发PyQt5进行安装,但似乎在 pypi 上setup.py缺少,这很奇怪。.tar.gz

根据文档,不建议从源代码安装

但是不推荐使用 pip 从源包安装

我不知道为什么您的 pip.tar.gz首先选择下载。查看whl您使用 登录的其他文件,pypicp36-cp36m-manylinux1_x86_64.whl有一个应该与您的系统兼容的文件,应该是下载的首选。PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whlpip

您可以尝试手动执行此操作:

wget https://files.pythonhosted.org/packages/ea/9d/d609aab4111d9d74857fb73067f7de4ca38fc1f7fff87ceba092681754cf/PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl
pip install PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-abi3-manylinux2014_x86_64.whl

然后再次尝试安装

于 2020-01-21T10:12:15.690 回答