youqing

导航

Mac+Python环境使用phantomjs时报在PATH中找不到

1、编辑.bash_profile文件,输入命令:open -a TextEdit ~/.bash_profile

2、在~/.bash_profile配置phantomjs路径,export PATH="/usr/local/#phantomjs-2.1.1-macosx/bin$PATH"

3、下载压缩包,解压之后,把bin文件夹下面的phantomjs复制到/usr/bin下面就行了

posted on 2020-06-15 12:01  youqing  阅读(756)  评论(0编辑  收藏  举报