大佬教程收集整理的这篇文章主要介绍了无法在 Raspberry Pi 上安装 PyQt5 - tmp 文件未找到错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
在 Pi 4b、8 gig RAM、256 gig UHS-1 u-SD 卡、pip 和 setuptools 升级、python 3.7.3 上运行 RasPi OS。
Pi 用户警告 - 在 python 升级过程中可能存在优先级问题,我需要使用 sudo 来确保发行版软件包已升级。不使用 sudo 的软件包安装在用户的 .local/bin 下 - 并且 /usr 库具有优先权。
关于错误:
pi@raspBerrypi:~ $ sudo pip3 install PyQt5 -U
Looking in indexes: https://pypi.org/simple,https://www.piwheels.org/simple
Collecting PyQt5
Downloading https://files.pythonhosted.org/packages/6e/86/d715e71771cece0e060f2ebab20f3ded067b08a0927dfb3143530cae8098/PyQt5-5.15.3.tar.gz (3.3MB)
100% |████████████████████████████████| 3.3MB 88kB/s
Installing build dependencIEs ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
file "<string>",line 1,in <module>
file "/usr/lib/python3.7/tokenize.py",line 447,in open
buffer = _builtin_open(filename,'rb')
fileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-by049ub_/PyQt5/setup.py'
----------------------------------------
Command "python setup.py egg_info" Failed with error code 1 in /tmp/pip-install-by049ub_/PyQt5/
pi@raspBerrypi:~ $
无需 sudo 即可执行此操作:
pi@raspBerrypi:~ $ pip3 install PyQt5
Looking in indexes: https://pypi.org/simple,https://www.piwheels.org/simple
Collecting PyQt5
Cache entry deserialization Failed,entry ignored
Cache entry deserialization Failed,entry ignored
Using cached https://files.pythonhosted.org/packages/28/6c/640e3f5c734c296a7193079a86842a789edb7988dca39eab44579088a1d1/PyQt5-5.15.2.tar.gz
Installing build dependencIEs ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
file "<string>",'rb')
fileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-a8yqsus1/PyQt5/setup.py'
----------------------------------------
Command "python setup.py egg_info" Failed with error code 1 in /tmp/pip-install-a8yqsus1/PyQt5/
转到以前的修订版并不能解决问题。其他软件包(例如 numpy)已经安装或升级得很好。在 windows 10 下安装 PyQt5 工作正常。
有没有人解决这个问题?
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)
以上是大佬教程为你收集整理的无法在 Raspberry Pi 上安装 PyQt5 - tmp 文件未找到错误全部内容,希望文章能够帮你解决无法在 Raspberry Pi 上安装 PyQt5 - tmp 文件未找到错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。