首页 > 解决方案 > 错误:找不到满足葡萄园要求的版本(来自版本:无)

问题描述

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

但是,在安装包“语法”和“葡萄园”时,我收到以下错误:

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版。

标签: pythonpycharmgrammar

解决方案


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

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

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


推荐阅读