When I try to scrape and run it, it looks like this.
I'm in trouble because I don't understand even if I look into it.Please give me a solution.
$ruby scraping_image.rb
/Users/000/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require':cannot load Such file --mechanize (LoadError)
from
/Users/000/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from
scraping_image.rb:1:in`<main>`
Use the gem list
command to get a list of installed gems and see if there is a mechanize.In macOS/Unix/Linux environments, the gem list | grep mechanismize
provides easy-to-see output.You seem to be using rbenv, so please check it out just in case.
© 2024 OneMinuteCode. All rights reserved.