简体   繁体   English

ImportError: DLL 加载失败:找不到指定的程序。 (thinkdsp 和 thinkplot)

[英]ImportError: DLL load failed: The specified procedure could not be found. (thinkdsp and thinkplot)

I am an amateur programmer.我是一个业余程序员。 I am trying to use:我正在尝试使用:

import thinkdsp as dsp

import thinkplot as plt

I have installed the pip install thinkx module but I keep getting that error and I don't understand why.我已经安装了pip install thinkx模块,但我一直收到该错误,我不明白为什么。 I will leave what the console shows down below:我将在下面留下控制台显示的内容:

Traceback (most recent call last):
  File "Karaokemaker1.py", line 1, in <module>
    import thinkdsp as dsp
  File "C:\Users\keigo\anaconda3\lib\site-packages\thinkdsp.py", line 17, in <module>
    import scipy.stats
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\stats\__init__.py", line 384, in <module>
    from .stats import *
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\stats\stats.py", line 185, in <module>
    from . import distributions
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\stats\distributions.py", line 10, in <module>
    from ._distn_infrastructure import (entropy, rv_discrete, rv_continuous,
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\stats\_distn_infrastructure.py", line 25, in <module>
    from scipy import optimize
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\optimize\__init__.py", line 390, in <module>
    from ._minimize import *
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\optimize\_minimize.py", line 30, in <module>
    from ._trustregion_constr import _minimize_trustregion_constr
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\__init__.py", line 4, in <module>
    from .minimize_trustregion_constr import _minimize_trustregion_constr
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\optimize\_trustregion_constr\minimize_trustregion_constr.py", line 4, in <module>
    from scipy.sparse.linalg import LinearOperator
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\sparse\linalg\__init__.py", line 116, in <module>
    from .eigen import *
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\__init__.py", line 11, in <module>
    from .arpack import *
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\__init__.py", line 22, in <module>
    from .arpack import *
  File "C:\Users\keigo\anaconda3\lib\site-packages\scipy\sparse\linalg\eigen\arpack\arpack.py", line 45, in <module>
    from . import _arpack
ImportError: DLL load failed: The specified procedure could not be found.

I assumed the issue was with the scipy because all the following errors come from that module.我认为问题出在scipy上,因为以下所有错误都来自该模块。 I checked and I have everything installed properly for the scipy module.我检查并为scipy模块正确安装了所有东西。

Please help!请帮忙! Thank you!谢谢!

Run any command prompt you are using as administrator and then run pip install lib_name --force-reinstall以管理员身份运行任何命令提示符,然后运行pip install lib_name --force-reinstall

Try using these two commands they will help you:尝试使用这两个命令,它们会帮助你:

conda remove --force scipy

And:和:

pip install scipy

Hello I had the same issue than you.你好我和你有同样的问题。 Depend on wich version of python you use you should choose a version thinkx.取决于您使用的 python 版本,您应该选择 thinkx 版本。 I recommend you to go on the website of thinkx and check out for past udapte.我推荐你到 thinkx 网站上的 go 并查看过去的 udapte。 In my case that was with matplotlib 3.3.1 for python 3.7.在我的情况下,python 3.7 是 matplotlib 3.3.1。 I went in git bash and used我进入 git bash 并使用

pip install matplotlib==3.0.1

and everything worked.一切正常。 I had the same issue with seaborn and it worked.我在 seaborn 上遇到了同样的问题,它有效。

暂无
暂无

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

相关问题 ImportError:DLL加载失败:找不到指定的过程。蟒蛇 - ImportError: DLL load failed: The specified procedure could not be found. Python 导入错误:DLL 加载失败:Uvedená procedura nebyla nalezena。 -propably ?找不到指定的程序。? - ImportError: DLL load failed: Uvedená procedura nebyla nalezena. -propably ?The specified procedure could not be found.? 在Windows XP上安装mapnik失败,并显示消息“ImportError:DLL加载失败:找不到指定的过程。” - Installing mapnik on Windows XP fails with the message “ImportError: DLL load failed: The specified procedure could not be found.” 将Numpy导入Python:“ ImportError:DLL加载失败:找不到指定的过程。” - Importing Numpy to Python: “ImportError: DLL load failed: The specified procedure could not be found.” from matplotlib import ft2font: “ImportError: DLL load failed: The specified procedure could not be found.” - from matplotlib import ft2font: “ImportError: DLL load failed: The specified procedure could not be found.” 导入 pptx 时出错“导入错误:DLL 加载失败:找不到指定的过程。” - Error when Import pptx "ImportError: DLL load failed: The specified procedure could not be found." 导入错误:DLL 加载失败:找不到指定的模块。(Keras) - ImportError: DLL load failed: The specified module could not be found.(Keras) MeCab:“ImportError:DLL 加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” MeCab:“ ImportError:DLL加载失败:找不到指定的模块。” - MeCab: “ImportError: DLL load failed: The specified module could not be found.” import matplotlib ImportError:DLL加载失败:找不到指定的过程 - import matplotlib ImportError: DLL load failed: The specified procedure could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM