Dun*_*ung 0 python selenium pip phantomjs
我运行一个使用 selenium 和 phantomjs 的 python 程序并得到这些错误 2) 和 3) 然后当我运行 pip install selenium 时我得到错误 1):
1) 当前未安装程序“pip”。
2)导入错误:没有名为“硒”的模块
3) selenium.common.exceptions.WebDriverException: 消息:'phantomjs' 可执行文件需要在 PATH 中。
全部在 Ubuntu 14.04 x64 上完成
以下是答案:
1) sudo apt-get install python-pip
2) sudo pip 安装硒
3) sudo apt-get install phantomjs
测试工作。我希望它能帮助你。
| 归档时间: |
|
| 查看次数: |
4589 次 |
| 最近记录: |