ERROR: Could not find a version that satisfies the requirement vineyard (from versions: none)

ERROR: Could not find a version that satisfies the requirement vineyard (from versions: none)

我正在尝试安装包“grammar”,其依赖项包括包“vineyard”和“Graphviz”。我正在使用 Pycharm,我能够毫无问题地安装 Graphviz。

但是,在安装包“grammar”和“vineyard”时,出现以下错误:

C:\<mylib>>pip install grammar

Collecting grammar
  Using cached https://files.pythonhosted.org/packages/7f/a3/4e712822d562faea9ec03f9181e53cf9dec0f4bebb1a19fceec6d3f51089/grammar-1.6-py3-none-any.whl
Collecting vineyard (from grammar)
  Could not find a version that satisfies the requirement vineyard (from grammar) (from versions: )
No matching distribution found for vineyard (from grammar)

ERROR: Could not find a version that satisfies the requirement vineyard (from versions: none)

当我尝试使用以下命令安装时:

pip install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.whl

我收到以下错误:

Processing c:<mylib>\vineyard_io-0.2.7-py3-none-any.whl
Collecting oss2
  Downloading oss2-2.15.0.tar.gz (226 kB)
     |████████████████████████████████| 226 kB 544 kB/s
Collecting pyorc
  Downloading pyorc-0.4.0-cp39-cp39-win_amd64.whl (765 kB)
     |████████████████████████████████| 765 kB 273 kB/s
Collecting s3fs
  Using cached s3fs-2021.8.0-py3-none-any.whl (26 kB)
Collecting pyarrow
  Downloading pyarrow-5.0.0-cp39-cp39-win_amd64.whl (14.5 MB)
     |████████████████████████████████| 14.5 MB 159 kB/s
Collecting hdfs3
  Downloading hdfs3-0.3.1.tar.gz (44 kB)
     |████████████████████████████████| 44 kB 409 kB/s
ERROR: Could not find a version that satisfies the requirement vineyard==0.2.7 (from vineyard-io) (from versions: none)
ERROR: No matching distribution found for vineyard==0.2.7

我正在使用 python 版本 3.9。

我认为您应该使用 pip3 而不是 pip,因为您的 python 版本是 3.x。

pip3 install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.wh

请告诉我这是否对您有用。我下载了您的 wheel 并使用与您相同的 python 版本安装了 wheel,但使用的是 pip3 而不是 pip。

将 python 版本从 3.9 降级到 3.8 后问题已解决。 我能够安装葡萄园,然后安装语法,没有任何问题。

pip install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.whl