[英]How to install pip and selenium and phantomjs on ubuntu
I run a python program that uses selenium and phantomjs and got these errors 2) and 3) then when I run pip install selenium i got error 1): 我运行一个使用selenium和phantomjs的python程序,并收到以下错误2)和3),然后当我运行pip install selenium时出现错误1):
1) The program 'pip' is currently not installed. 1)当前未安装程序“ pip”。
2) ImportError: No module named 'selenium' 2)ImportError:没有名为“ selenium”的模块
3) selenium.common.exceptions.WebDriverException: Message: 'phantomjs' executable needs to be in PATH. 3)selenium.common.exceptions.WebDriverException:消息:“ phantomjs”可执行文件必须位于PATH中。
All done on Ubuntu 14.04 x64 全部在Ubuntu 14.04 x64上完成
Here are the answers: 答案如下:
1) sudo apt-get install python-pip 1)sudo apt-get安装python-pip
2) sudo pip install selenium 2)sudo pip安装硒
3) sudo apt-get install phantomjs 3)sudo apt-get安装phantomjs
tested working. 经过测试的工作。 i hope it helps you.
希望对您有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.