您的位置:首页 > 编程语言 > Python开发

[mac笔记]Mac搭建python+selenium环境

2017-11-22 12:02 579 查看
参考链接http://blog.csdn.net/kacylining/article/details/60587484

1下载pip-9.0.1

-解压后保存位位置/usr/local/pip-9.0.1/

-cd到这个目录 sudo python setup.py install

creating dist
creating 'dist/pip-9.0.1-py2.7.egg' and adding 'build/bdist.macosx-10.12-intel/egg' to it
removing 'build/bdist.macosx-10.12-intel/egg' (and everything under it)
Processing pip-9.0.1-py2.7.egg
creating /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
Extracting pip-9.0.1-py2.7.egg to /Library/Python/2.7/site-packages
Adding pip 9.0.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg
Processing dependencies for pip==9.0.1
Finished processing dependencies for pip==9.0.1


macs-Mac-mini:pip-9.0.1 mac$ sudo pip install -U selenium

The directory ‘/Users/mac/Library/Caches/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

The directory ‘/Users/mac/Library/Caches/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.

Requirement already up-to-date: selenium in /Library/Python/2.7/site-packages



测试安装是否成功

http://blog.csdn.net/zxy987872674/article/details/53082896

http://blog.csdn.net/lj2tj/article/details/53082346

Chrome Driver:

http://chromedriver.storage.googleapis.com/index.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: