折腾:
【未解决】把某Mac中已爬取部分数据的PySpider项目移动到另一Mac电脑中继续爬取
期间,需要再去mac中安装phantomjs。
Mac phantomjs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | xxxdeMacBook-Pro:~ xxx$ brew update && brew install phantomjs Already up-to- date . Error: No available formula with the name "phantomjs" It was migrated from homebrew /core to homebrew /cask . You can access it again by running: brew tap homebrew /cask And then you can install it by running: brew cask install phantomjs xxxdeMacBook-Pro:~ xxx$ brew tap homebrew /cask Updating Homebrew... ==> Tapping homebrew /cask Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask' ... remote: Enumerating objects: 4137, done . remote: Counting objects: 100% (4137 /4137 ), done . remote: Compressing objects: 100% (4128 /4128 ), done . remote: Total 4137 (delta 27), reused 487 (delta 6), pack-reused 0 Receiving objects: 100% (4137 /4137 ), 1.31 MiB | 209.00 KiB /s , done . Resolving deltas: 100% (27 /27 ), done . Checking out files: 100% (4122 /4122 ), done . Tapped 1 command and 4039 casks (4,147 files, 4.2MB). xxxdeMacBook-Pro:~ xxx$ brew cask install phantomjs ==> Caveats phantomjs has been officially discontinued upstream. It may stop working correctly (or at all) in recent versions of macOS. ==> Satisfying dependencies ==> Downloading https: //bitbucket .org /ariya/phantomjs/downloads/phantomjs-2 .1.1-macosx.zip ==> Downloading from https: //bbuseruploads .s3.amazonaws.com /fd96ed93-2b32-46a7-9d2b-ecbc0988516a/downloads/8543ae7d-9ac7-43d3-9052-537d63f16d66/phantomjs ######################################################################## 100.0% ==> Verifying SHA-256 checksum for Cask 'phantomjs' . ==> Installing Cask phantomjs ==> Linking Binary 'phantomjs' to '/usr/local/bin/phantomjs' .
xxxdeMacBook-Pro:~ xxx$ which phantomjs /usr/local/bin/phantomjs xxxdeMacBook-Pro:~ xxx$ phantomjs --version 2.1.1 |
好像是可以了。
【总结】
此处是:
1 2 | brew tap homebrew /cask brew cask install phantomjs |
即可安装出phantomjs。
此处版本是2.1.1
转载请注明:在路上 » 【已解决】Mac中安装phantomjs