簡體   English   中英

由於pip中的numpy NameError,無法安裝mdfreader版本3

[英]Can't install mdfreader version 3 due to numpy NameError in pip

我想更新mdfreader,但是在使用pip upgrade命令時收到錯誤消息:NameError:未定義名稱numpy

我已經將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

然后嘗試使用全名調用numpy。 我認為如果這是問題所在,那么沒有人能夠安裝最新版本

我去了文件路徑,但是文件不在那兒,我猜它只是被臨時刪除了。

如果Cython不可用,則mdfreader不會導入numpy 嘗試

pip install cython

這是他們setup.py一個錯誤,已經有報道

您嘗試過asammdf嗎? 免責聲明:我是此軟件包的主要開發者

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM