安装python MPLS游标时出现的问题

2024-10-01 11:34:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在我的电脑上安装MPLcurser。 我试过:

pip install mplcursors

它给我的错误是:

Collecting mplcursors
Could not find a version that satisfies the requirement mplcursors (from versions: )
No matching distribution found for mplcursors

我还尝试:

pip install git+https://github.com/anntzer/mplcursors

它给我的错误是:

Collecting git+https://github.com/anntzer/mplcursors
Cloning https://github.com/anntzer/mplcursors to /tmp/pip-VP7mtD-build
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-VP7mtD-build/setup.py", line 1, in <module>
    from setupext import find_packages, setup
  File "setupext.py", line 16, in <module>
    from pathlib import Path
ImportError: No module named pathlib

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

有人知道我如何解决这个问题并安装mplcursors吗


Tags: pipinfrompyhttpsbuildgithubcom