[英]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.