python - 错误:找不到满足葡萄园要求的版本(来自版本:无)
问题描述
我正在尝试安装包“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版。
解决方案
我认为你应该使用 pip3 而不是 pip,因为你的 python 版本是 3.x。
pip3 install C:/<mylib>/vineyard_io-0.2.7-py3-none-any.wh
请告诉我这是否对您有用。我下载了你的轮子并使用与你相同的 python 版本安装了轮子,但使用 pip3 而不是 pip。
推荐阅读
- machine-learning - 如何在 NLP 中实现增量学习
- qt - 交叉编译到树莓派时 JPEG 图像质量下降
- c# - 如何映射另一个表中的列?
- java - 如何从一个div下的不同元素中获取所有文本
- php - 如何在两个 DIV 之间进行嵌套的 For Loop 拆分输出?
- apache-kafka - 在 Ubuntu 的本地设置 kafka-connect 以与 debezium 和 WSO2 流处理器一起使用?
- numpy - 如何使用带有熊猫的随机森林来使用特征重要性?
- java - 如何使用 Spark 并行读取文件夹中具有不同 rowTag 的 xml 文件
- docker - docker 可以使用 http 请求从私有注册表中提取图像吗?
- node.js - 如何在 Node Js API 中添加身份验证?