xiawj-hub / CTLIB

A lib of CT projector and back-projector based on PyTorch
MIT License
39 stars 6 forks source link

ImportError: DLL load failed while importing ctlib: 找不到指定的模块 #13

Open fire5226 opened 1 year ago

fire5226 commented 1 year ago

您好!感谢您的工作,我在安装库运行时报错: ImportError: DLL load failed while importing ctlib: 找不到指定的模块 在pip list显示已安装ctlib 0.2.0,请教这如何解决?感谢! 环境:Win10, python 3.9, cuda 11.3, torch 11.3.1+cu116。

xiawj-hub commented 1 year ago

Try to Import torch first

Best

Wenjun

From: fire5226 @.> Sent: Monday, July 17, 2023 10:22 PM To: xwj01/CTLIB @.> Cc: Subscribed @.***> Subject: [xwj01/CTLIB] ImportError: DLL load failed while importing ctlib: 找不到指定的模块 (Issue #13)

您好!感谢您的工作,我在安装库运行时报错: ImportError: DLL load failed while importing ctlib: 找不到指定的模块 在pip list显示已安装ctlib 0.2.0,请教这如何解决?感谢! 环境:Win10, python 3.9, cuda 11.3, torch 11.3.1+cu116。

— Reply to this email directly, view it on GitHub https://github.com/xwj01/CTLIB/issues/13 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVWQIXP4GGRG5SAMXTO2LXQXXOBANCNFSM6AAAAAA2NW5LF4 . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AJRVWQPZDFWGBFYDEL2IUATXQXXOBA5CNFSM6AAAAAA2NW5LF6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGXUSPHA.gif Message ID: @. @.> >

fire5226 commented 1 year ago

Try to Import torch first Best Wenjun From: fire5226 @.> Sent: Monday, July 17, 2023 10:22 PM To: xwj01/CTLIB @.> Cc: Subscribed @.> Subject: [xwj01/CTLIB] ImportError: DLL load failed while importing ctlib: 找不到指定的模块 (Issue #13) 您好!感谢您的工作,我在安装库运行时报错: ImportError: DLL load failed while importing ctlib: 找不到指定的模块 在pip list显示已安装ctlib 0.2.0,请教这如何解决?感谢! 环境:Win10, python 3.9, cuda 11.3, torch 11.3.1+cu116。 — Reply to this email directly, view it on GitHub <#13> , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVWQIXP4GGRG5SAMXTO2LXQXXOBANCNFSM6AAAAAA2NW5LF4 . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AJRVWQPZDFWGBFYDEL2IUATXQXXOBA5CNFSM6AAAAAA2NW5LF6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGXUSPHA.gif Message ID: @. @.***> >

抱歉打扰!我尝试了您说的方法在py文件中更改Import顺序,也修改过环境变量,但好像不起作用。请问还有什么尝试办法?感谢您!

xiawj-hub commented 1 year ago

如果你安装成功,却无法导入,那么极大可能还是导入顺序的问题,请确认在导入ctlib之前先导入torch,目前我见到的这类错误都是因为这个原因。如果你确认了导入顺序没有问题,那么我目前也没有解决方案,只能试一下重新编译安装。

谢谢!

From: fire5226 @.> Sent: Tuesday, July 18, 2023 10:35 PM To: xwj01/CTLIB @.> Cc: xwj01 @.>; Comment @.> Subject: Re: [xwj01/CTLIB] ImportError: DLL load failed while importing ctlib: 找不到指定的模块 (Issue #13)

Try to Import torch first Best Wenjun From: fire5226 @.> Sent: Monday, July 17, 2023 10:22 PM To: xwj01/CTLIB @.> Cc: Subscribed @.> Subject: [xwj01/CTLIB] ImportError: DLL load failed while importing ctlib: 找不到指定的模块 (Issue #13 https://github.com/xwj01/CTLIB/issues/13 ) 您好!感谢您的工作,我在安装库运行时报错: ImportError: DLL load failed while importing ctlib: 找不到指定的模块 在pip list显示已安装ctlib 0.2.0,请教这如何解决?感谢! 环境:Win10, python 3.9, cuda 11.3, torch 11.3.1+cu116。 — Reply to this email directly, view it on GitHub <#13 https://github.com/xwj01/CTLIB/issues/13 > , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVWQIXP4GGRG5SAMXTO2LXQXXOBANCNFSM6AAAAAA2NW5LF4 . You are receiving this because you are subscribed to this thread. https://github.com/notifications/beacon/AJRVWQPZDFWGBFYDEL2IUATXQXXOBA5CNFSM6AAAAAA2NW5LF6WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHGXUSPHA.gif Message ID: @. @.***> >

抱歉打扰!我尝试了您说的方法在py文件中更改Import顺序,也修改过环境变量,但好像不起作用。请问还有什么尝试办法?感谢您!

— Reply to this email directly, view it on GitHub https://github.com/xwj01/CTLIB/issues/13#issuecomment-1641292593 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJRVWQJR2GDD4R6ALPLZV73XQ5BT3ANCNFSM6AAAAAA2NW5LF4 . You are receiving this because you commented. https://github.com/notifications/beacon/AJRVWQINBF6GK7AD3CNYTKDXQ5BT3A5CNFSM6AAAAAA2NW5LF6WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTB2QRTC.gif Message ID: @. @.> >

FSBD-Guo commented 4 months ago

请问您解决这个问题了吗,我也遇到了同样的情况