-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win10 CPU环境,OSError: [WinError 126] 找不到指定的模块 #212
Comments
重新安装shapely这个库试试 |
重装了shapely,同样的Error |
问题像是win上通过pip安装的shapely库缺少了dll文件,你可以从 网页下载对应的whl包,从本地安装 |
从您提供的网址下载了 Shapely-1.7.0-cp39-cp39-win_amd64.whl,pip install 此whl文件不成功。于是更名为Shapely-1.7.0-cp39-cp39-win_amd64.rar,然后解压缩,从其子目录shapely\DLLs\中找到geos_c.dll,并将geos_c.dll拷贝到conda的环境(我的命名是ocr)目录 C:\Users\myusername\Miniconda3\envs\ocr\Library\bin中。问题解决。 |
我用的Anaconda3,我把之前的Shapely卸载掉了,从python扩展网站上自己下了新的whl,重新安装一下,结果最终成功了。 |
通过whl安装错误依然存在,ssbook说的基本正确,但是光拷贝geos_c.dll我发现依然报错,需要同时把geos.dll和geos_c.dll拷贝至你anaconda环境中的library\bin中,问题解决 |
再提一个解决方案:pip uninstall然后直接conda install |
08tjlys 说的正确 我试了 |
ssbook说的有效,我pip和whl都不行,拷贝后能正常导包。我只导了一个dll也能跑。 |
在本地个人电脑Win10环境中,安装了Miniconda + Paddlepaddle1.7.2 + Jupyter ,并且git clone 了PaddleOCR到本地C:\
请见图片所示Error信息,已经安装了“微软常用运行库合集 2020.03.25 x86x64”,重启电脑后,问题依然。
The text was updated successfully, but these errors were encountered: