python引用numpy出错_使用numpy时出错
我嘗試使用pandas python進行excel操作。在
每當我嘗試使用pandas庫時,它都會給我錯誤的提示:numpy沒有安裝。在
現在,當我嘗試安裝pip install numpy和pip安裝pandas時,它說需求已經滿足了。在
但是當我嘗試做一個簡單的numpy教程時,它在numpy的import語句中出錯。在> import numpy as np
>Traceback (most recent call last):
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\__init__.py", line 16, in
> from . import multiarray
>ImportError: DLL load failed: The specified procedure could not be found.
>
>During handling of the above exception, another exception occurred:
>
>Traceback (most recent call last):
> File "", line 1, in
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\__init__.py", line 142, in
> from . import add_newdocs
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\add_newdocs.py", line 13, in
> from numpy.lib import add_newdoc
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\__init__.py", line 8, in
> from .type_check import *
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\lib\type_check.py", line 11, in
> import numpy.core.numeric as _nx
> File "C:\Users\user\AppData\Local\Programs\Python\Python36\lib\site-packages\numpy\core\__init__.py", line 26, in
> raise ImportError(msg)
>ImportError:
>Importing the multiarray numpy extension module failed. Most
>likely you are trying to import a failed build of numpy.
>If you're working with a numpy git repo, try `git clean -xdf` (removes all
>files not under version control). Otherwise reinstall numpy.
>
>Original error was: ***DLL load failed: The specified procedure could not be found.***
總結
以上是生活随笔為你收集整理的python引用numpy出错_使用numpy时出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 相互宝取消了钱会退吗?
- 下一篇: 日历签到 java_我的Android案