IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> Python知识库 -> 安装nlgeval报错 -> 正文阅读

[Python知识库]安装nlgeval报错

结论放在前面:
换网络,或是科学上网,或是重启wifi,不断尝试以下代码:

python setup.py install

wish you lucky~


以下是错误到成功过程:

按照https://blog.csdn.net/qq_38247544/article/details/106650471安装,报错如下

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\nlg_eval-2.3-py3.7.egg
Processing dependencies for nlg-eval==2.3
Searching for gensim~=3.8.3
Reading https://pypi.org/simple/gensim/
Download error on https://pypi.org/simple/gensim/: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 -- Some packages may not be found!
Couldn't find index page for 'gensim' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.org/simple/
Download error on https://pypi.org/simple/: [WinError 10054] 远程主机强迫关闭了一个现有的连接。 -- Some packages may not be found!
No local packages or working download links found for gensim~=3.8.3
error: Could not find suitable distribution for Requirement.parse('gensim~=3.8.3')

或者

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\nlg_eval-2.3-py3.7.egg
Processing dependencies for nlg-eval==2.3
Searching for gensim~=3.8.3
Reading https://pypi.org/simple/gensim/
Downloading https://files.pythonhosted.org/packages/0b/66/04faeedb98bfa5f241d0399d0102456886179cabac0355475f23a2978847/gensim-3.8.3-cp37-cp37m-win_amd64.whl#sha256=fe98277a7b3b4987b40c928056bbaae1d0715022cf27bba89d05cd0d4fe51a84
error: The read operation timed out

换源也于事无补
初步推断是网络问题

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
nlg-eval 2.3 requires Cython>=0.28.5, which is not installed.
nlg-eval 2.3 requires gensim~=3.8.3, which is not installed.
nlg-eval 2.3 requires nltk>=3.4.5, which is not installed.

反复尝试后:

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\nlg_eval-2.3-py3.7.egg
Processing dependencies for nlg-eval==2.3
Searching for gensim~=3.8.3
Reading https://pypi.org/simple/gensim/
Downloading https://files.pythonhosted.org/packages/0b/66/04faeedb98bfa5f241d0399d0102456886179cabac0355475f23a2978847/gensim-3.8.3-cp37-cp37m-win_amd64.whl#sha256=fe98277a7b3b4987b40c928056bbaae1d0715022cf27
bba89d05cd0d4fe51a84
Best match: gensim 3.8.3
Processing gensim-3.8.3-cp37-cp37m-win_amd64.whl
Installing gensim-3.8.3-cp37-cp37m-win_amd64.whl to d:\programfiles\anaconda3\envs\pytorch\lib\site-packages
Adding gensim 3.8.3 to easy-install.pth file

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\gensim-3.8.3-py3.7-win-amd64.egg
Searching for Cython>=0.28.5
Reading https://pypi.org/simple/Cython/
Downloading https://files.pythonhosted.org/packages/c4/7c/293f5e9311664af5f54ca46dcb2118fc1b4e551eec161f74c050f17cd991/Cython-3.0.0a10-py2.py3-none-any.whl#sha256=9f2f7198a2c7db2d5118dffaaaab357927f689bbcb517
fb37083724500a02a0c
Best match: Cython 3.0.0a10
Processing Cython-3.0.0a10-py2.py3-none-any.whl
Installing Cython-3.0.0a10-py2.py3-none-any.whl to d:\programfiles\anaconda3\envs\pytorch\lib\site-packages
Adding Cython 3.0.0a10 to easy-install.pth file
Installing cygdb-script.py script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing cygdb.exe script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing cython-script.py script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing cython.exe script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing cythonize-script.py script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing cythonize.exe script to D:\programfiles\Anaconda3\envs\pytorch\Scripts

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\cython-3.0.0a10-py3.7.egg
Searching for nltk>=3.4.5
Reading https://pypi.org/simple/nltk/
Downloading https://files.pythonhosted.org/packages/43/0b/8298798bc5a9a007b7cae3f846a3d9a325953e0f9c238affa478b4d59324/nltk-3.7-py3-none-any.whl#sha256=ba3de02490308b248f9b94c8bc1ac0683e9aa2ec49ee78536d8667af
b5e3eec8
Best match: nltk 3.7
Processing nltk-3.7-py3-none-any.whl
Installing nltk-3.7-py3-none-any.whl to d:\programfiles\anaconda3\envs\pytorch\lib\site-packages
Adding nltk 3.7 to easy-install.pth file
Installing nltk-script.py script to D:\programfiles\Anaconda3\envs\pytorch\Scripts
Installing nltk.exe script to D:\programfiles\Anaconda3\envs\pytorch\Scripts

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\nltk-3.7-py3.7.egg
Searching for smart-open>=1.8.1
Reading https://pypi.org/simple/smart-open/
Downloading https://files.pythonhosted.org/packages/cd/11/05f68ea934c24ade38e95ac30a38407767787c4e3db1776eae4886ad8c95/smart_open-5.2.1-py3-none-any.whl#sha256=71d14489da58b60ce12fc3ecb823facc59a8b23cd1b58edb
97175640350d3a62
Best match: smart-open 5.2.1
Processing smart_open-5.2.1-py3-none-any.whl
Installing smart_open-5.2.1-py3-none-any.whl to d:\programfiles\anaconda3\envs\pytorch\lib\site-packages
Adding smart-open 5.2.1 to easy-install.pth file

Installed d:\programfiles\anaconda3\envs\pytorch\lib\site-packages\smart_open-5.2.1-py3.7.egg
error: Cython 3.0.0a10 is installed but Cython==0.29.14 is required by {'gensim'}

  Python知识库 最新文章
Python中String模块
【Python】 14-CVS文件操作
python的panda库读写文件
使用Nordic的nrf52840实现蓝牙DFU过程
【Python学习记录】numpy数组用法整理
Python学习笔记
python字符串和列表
python如何从txt文件中解析出有效的数据
Python编程从入门到实践自学/3.1-3.2
python变量
上一篇文章      下一篇文章      查看所有文章
加:2022-03-11 22:09:03  更:2022-03-11 22:09:20 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年12日历 -2024/12/29 20:02:40-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码
数据统计