由于pip中的numpy名称错误,无法安装mdfreader版本3

2024-04-26 00:23:14 发布

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

我想更新mdfreader,但是当使用pip upgrade命令时,我收到一个错误:NameError:namenumpy未定义

我已经将pip和setuptools更新到最新版本,错误没有改变。在

Traceback (most recent call last):
File "C:\Users\myname\AppData\Local\Temp\pip-install-85wfmgif\mdfreader\setup.py", line 111, in <module>
entry_points = entry_points, ext_modules=ext_modules, include_dirs= 
[numpy.get_include<>])
NameError:name `numpy` is not defined

during handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\myname\AppData\Local\Temp\pip-install-85wfmgif\mdfreader\setup.py", line 120, in <module>
entry_points = entry_points, ext_modules=ext_modules, include_dirs= 
[numpy.get_include<>])
NameError:name `numpy` is not defined
   ---------------------------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\myname\AppData\Local\Temp\pip-install-85wfmgif\mdfreader\

我发现有人用过类似的问题: 将numpy作为np导入

然后试着用它的全名给纽比打电话。我想如果这就是问题所在,那么没有人能够安装最新版本

我去了文件路径,但是文件不在那里,我想它只是被删除了,因为它是临时的。在


Tags: pipinnumpymodulesincludelocalusersappdata