美文网首页我爱编程
Deepin下的Python开发记录

Deepin下的Python开发记录

作者: dpkBat | 来源:发表于2017-05-11 17:34 被阅读0次

标签:Python开发 Deepin


1. chromedriver配置

  • Install Unzip
sudo apt-get install unzip
  • download the latest version of chromedriver from their website
wget -N http://chromedriver.storage.googleapis.com/2.29/chromedriver_linux64.zip
  • unzip chromedriver
unzip chromedriver_linux64.zip
  • Make the file you downloaded executable, and move it to /usr/local/share
chmod +x chromedriver
sudo mv -f chromedriver /usr/local/share/chromedriver
  • create symlinks to the chromedriver. Cucumber would look for the drivers in /usr/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
  • 验证是否安装成功
chromedriver

成功如下图所示:


chromedriver

2. PhantomJS配置

wget -N https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
  • 解压下载好的phantomjs-2.1.1-linux-x86_64.tar.bz2

  • 将解压后的文件(夹)移动到/usr/local/share

sudo mv phantomjs-2.1.1-linux-x86_64/ /usr/local/share
  • 创建phantomjs软链接
sudo ln -sf /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin
  • 验证是否安装成功
phantomjs --version

成功如下图所示:


phantomjs

相关文章

网友评论

    本文标题:Deepin下的Python开发记录

    本文链接:https://www.haomeiwen.com/subject/nxtatxtx.html