Skip to content
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

Closed
ssbook opened this issue Jun 16, 2020 · 9 comments
Closed

Win10 CPU环境,OSError: [WinError 126] 找不到指定的模块 #212

ssbook opened this issue Jun 16, 2020 · 9 comments

Comments

@ssbook
Copy link

ssbook commented Jun 16, 2020

在本地个人电脑Win10环境中,安装了Miniconda + Paddlepaddle1.7.2 + Jupyter ,并且git clone 了PaddleOCR到本地C:\

2020-06-16_090846

请见图片所示Error信息,已经安装了“微软常用运行库合集 2020.03.25 x86x64”,重启电脑后,问题依然。

@LDOUBLEV
Copy link
Collaborator

重新安装shapely这个库试试

@ssbook
Copy link
Author

ssbook commented Jun 16, 2020

重新安装shapely这个库试试

重装了shapely,同样的Error

@LDOUBLEV
Copy link
Collaborator

LDOUBLEV commented Jun 16, 2020

问题像是win上通过pip安装的shapely库缺少了dll文件,你可以从 网页下载对应的whl包,从本地安装

@ssbook
Copy link
Author

ssbook commented Jun 17, 2020

问题像是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中。问题解决。

@itsZheng
Copy link

我用的Anaconda3,我把之前的Shapely卸载掉了,从python扩展网站上自己下了新的whl,重新安装一下,结果最终成功了。
pip uninstall Shapely
pip install Shapely-1.7.1-cp37-cp37m-win_amd64.whl

@08tjlys
Copy link

08tjlys commented Nov 18, 2020

通过whl安装错误依然存在,ssbook说的基本正确,但是光拷贝geos_c.dll我发现依然报错,需要同时把geos.dll和geos_c.dll拷贝至你anaconda环境中的library\bin中,问题解决

@yumeliu
Copy link

yumeliu commented Feb 14, 2021

再提一个解决方案:pip uninstall然后直接conda install

@NanZhang1991
Copy link

08tjlys 说的正确 我试了

@wxtt522
Copy link

wxtt522 commented Mar 1, 2021

ssbook说的有效,我pip和whl都不行,拷贝后能正常导包。我只导了一个dll也能跑。

an1018 pushed a commit to an1018/PaddleOCR that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants