DLError(Exec 格式错误)Ruby26-x64 试图打开 python.dll
DLError (Exec format error) Ruby26-x64 trying to open python.dll
我正在尝试使用 ruby 打开 python.dll 但我在以下代码行中遇到以下错误
Fiddle.dlopen("C:\Python36/lib/python.dll").tap
Traceback (most recent call last):
8: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
7: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
5: from (irb):7
4: from (irb):7:in `rescue in irb_binding'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `dlopen'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `new'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `initialize'
Fiddle::DLError (Exec format error)
确保您的 Python/Ruby 安装具有相同的位。
我正在尝试使用 ruby 打开 python.dll 但我在以下代码行中遇到以下错误
Fiddle.dlopen("C:\Python36/lib/python.dll").tap
Traceback (most recent call last):
8: from C:/Ruby26-x64/bin/irb.cmd:31:in `<main>'
7: from C:/Ruby26-x64/bin/irb.cmd:31:in `load'
6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/irb-1.0.0/exe/irb:11:in `<top (required)>'
5: from (irb):7
4: from (irb):7:in `rescue in irb_binding'
3: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `dlopen'
2: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `new'
1: from C:/Ruby26-x64/lib/ruby/2.6.0/fiddle.rb:47:in `initialize'
Fiddle::DLError (Exec format error)
确保您的 Python/Ruby 安装具有相同的位。