简体   繁体   English

导入 Numexpr Python 时如何修复错误

[英]How to fix error while importing Numexpr Python

On Windows 10 Python 3.7.9 (IDLE) I successfully installed "pip install numexpr" but while "import numexpr as ne" I have an error:在 Windows 10 Python 3.7.9 (IDLE) 上,我成功安装了“pip install numexpr”,但在“import numexpr as ne”时出现错误:

Traceback (most recent call last): File "<pyshell#21>", line 267, in import numexpr as ne File "C:\Python379\lib\site-packages\numexpr_ init _.py", line 28, in from numexpr.interpreter import MAX_THREADS, use_vml, __ BLOCK_SIZE1__ ImportError: DLL load failed: Can't find this module.回溯(最后一次调用):文件“<pyshell#21>”,第 267 行,在 import numexpr as ne 文件“C:\Python379\lib\site-packages\numexpr_ init _.py”,第 28 行,来自numexpr.interpreter import MAX_THREADS, use_vml, __ BLOCK_SIZE1__ ImportError: DLL load failed: 找不到这个模块。

Maybe I need to install Numexpr other way也许我需要以其他方式安装 Numexpr

I was facing same error.我面临同样的错误。 I fixed it by downloading numpy+mkl package from https://www.lfd.uci.edu/~gohlke/pythonlibs/ and pip installing it from terminal (from where the downloaded whl file is located)我通过从https://www.lfd.uci.edu/~gohlke/pythonlibs/和 Z62AD1C2A46C5298F3E2C95D3BABF8 下载 numpy+mkl package 来修复它

Download the correct version that suits your configuration.下载适合您配置的正确版本。 I use python3.6 so I downloaded numpy‑1.19.5+mkl‑cp36‑cp36m‑win_amd64.whl我使用python3.6所以我下载了numpy‑1.19.5+mkl‑cp36‑cp36m‑win_amd64.whl

Hope it was helpful!希望对您有所帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM