PaddleX
PaddleX copied to clipboard
windows下shapely报错:lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll')) OSError: [WinError 126] 找不到指定的模块
问题类型:模型训练
PaddleX版本
您使用的PaddleX版本
问题描述
(paddlex) C:\Users\zzy\Desktop\paddle\tutorials\train\object_detection>python ppyolov2.py
E:\anaconda3\envs\paddlex\lib\site-packages\paddle\distributed\parallel.py:120: UserWarning: Currently not a parallel execution environment, paddle.distributed.init_parallel_env will not do anything.
"Currently not a parallel execution environment, paddle.distributed.init_parallel_env will not do anything."
Traceback (most recent call last):
File "ppyolov2.py", line 1, in
File "E:\anaconda3\envs\paddlex\lib\site-packages\paddlex\cv\transforms\functions.py", line 18, in
- 用管理权权限启动终端
- 进入该conda环境后,pip show shapely看是否是1.7.1版本,卸载shapely后重新安装shapely
issue #1057
windows上,在conda环境内通过pip install shapely后会出现该问题,具体可以看shapely issue https://github.com/Toblerity/Shapely/issues/1032
解决办法:
- 卸载pip安装的shapely
pip uninstall shapely
- 然后用conda安装
conda install shapely==1.7.1
我也遇到了这个问题 只要升级到paddleX2.0 就会报这个错