英文:
MacOS pycharm can not install python Mediapipe version 0.10.0 with pip
问题
我尝试安装最新版本的mediapipe 0.10.0,使用命令 pip install mediapipe==0.10.0,但总是遇到相同的错误:
ERROR: Could not find a version that satisfies the requirement mediapipe==0.10.0 (from versions: 0.8.3.1, 0.8.4.2, 0.8.5, 0.8.6.2, 0.8.7.1, 0.8.7.2, 0.8.7.3, 0.8.8, 0.8.8.1, 0.8.9, 0.8.9.1, 0.8.10, 0.8.10.1, 0.8.11, 0.9.0, 0.9.0.1, 0.9.1.0)
ERROR: No matching distribution found for mediapipe==0.10.0
我尝试过Python版本 3.8、3.9、3.10,但都没有成功。
尽管之前的版本总是能够顺利安装。
我在终端和PyCharm包管理中都尝试了使用pip。
英文:
I am trying to install the latest version of mediapipe 0.10.0 using pip install mediapipe==0.10.0 but always I get the same error:
ERROR: Could not find a version that satisfies the requirement mediapipe==0.10.0 (from versions: 0.8.3.1, 0.8.4.2, 0.8.5, 0.8.6.2, 0.8.7.1, 0.8.7.2, 0.8.7.3, 0.8.8, 0.8.8.1, 0.8.9, 0.8.9.1, 0.8.10, 0.8.10.1, 0.8.11, 0.9.0, 0.9.0.1, 0.9.1.0)
ERROR: No matching distribution found for mediapipe==0.10.0
I tried python versions 3.8, 3.9, 3.10 and none of them worked.
Although the previous version is always installed without error.
I used pip from terminal and from pycharm managing packages
答案1
得分: 1
最新可用版本在列表中为 0.9.1.0,所以为了调查问题可能出在哪里,我们可以检查各个版本之间的差异。为此,我们可以查看PyPi项目页面的 files 部分:
对于0.10.0(pip 对你不兼容的版本):
> mediapipe-0.10.0-cp311-cp311-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp310-cp310-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp39-cp39-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp38-cp38-macosx_12_0_universal2.whl
对于0.9.2.1(pip 对你不兼容的版本):
> mediapipe-0.9.2.1-cp311-cp311-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp310-cp310-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp39-cp39-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp38-cp38-macosx_12_0_x86_64.whl
对于0.9.1.0(pip 对你兼容的版本):
> mediapipe-0.9.1.0-cp311-cp311-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp310-cp310-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp39-cp39-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp38-cp38-macosx_10_15_x86_64.whl
现在我们可以检查差异。所有的 Python 标签都是相同的 cp38、cp39、cp310、cp311,所以只要你使用的是 Python 3.8、3.9、3.10 或 3.11,它就是兼容的。不同之处在于平台标签。
对于版本 0.9.1,标签是 macosx_10_15,表示兼容 MacOS 版本 >= 10.15
对于 0.9.2.1,标签是 macosx_12_0,所以现在它兼容 MacOS 版本 >= 12
你很可能使用的是较低版本,所以无法安装更新的 mediapipe 版本。升级你的操作系统,它应该可以正常工作。
英文:
The latest version in the list of available ones 0.9.1.0, so to investigate where the issue might be, we can check for any differences in the releases. For this, we can check the files section of the PyPi project page:
For 0.10.0 (which pip doesn't see compatible for you):
> mediapipe-0.10.0-cp311-cp311-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp310-cp310-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp39-cp39-macosx_12_0_universal2.whl
mediapipe-0.10.0-cp38-cp38-macosx_12_0_universal2.whl
For 0.9.2.1 (which pip doesn't see compatible for you):
> mediapipe-0.9.2.1-cp311-cp311-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp310-cp310-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp39-cp39-macosx_12_0_x86_64.whl
mediapipe-0.9.2.1-cp38-cp38-macosx_12_0_x86_64.whl
For 0.9.1.0 (which pip does see compatible for you):
> mediapipe-0.9.1.0-cp311-cp311-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp310-cp310-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp39-cp39-macosx_10_15_x86_64.whl
mediapipe-0.9.1.0-cp38-cp38-macosx_10_15_x86_64.whl
Now we can check differences. All python tags are the same cp38, cp39, cp310, cp311, so as long as you are using python 3.8, 3.9, 3.10 or 3.11 it is compatible. The difference is the platform tag.
For version 0.9.1, the tag is macosx_10_15 indicating a compatibility with MacOS version >= 10.15
For 0.9.2.1, the tag is macosx_12_0, so we now have a compatibility with MacOS version >= 12
You have most likely a lower version, so you cannot install the more recent mediapipe versions. Upgrade your OS and it should work
答案2
得分: 0
基于PyPi,mediapipe包支持所有操作系统(包括MacOS)和上述指定的Python版本。
首先尝试升级您的pip版本,运行python -m pip install --upgrade pip,然后通过检查pip --version来验证更新。
希望这有所帮助!
英文:
Based on the PyPi, the mediapipe package is supported on all operating systems (including MacOS) and the above-specified Python versions.
Try upgrading your pip version first by running python -m pip install --upgrade pip and verify the update by checking the pip --version.
Hope this helps!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论