問題描述:
在建立第一個虛擬環境時,運行pyspider正常。建立第二個虛擬環境時,運行pyspider再現下面錯誤。應該是phantomjs沒有啟動成功。
錯誤代碼:(phantomjs:21507): WARNING **: Couldn't register with accessibility bus: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
解決方法:
找到phantomjs安裝的位置,把phantomjs復制到/usr/local/bin
命令:sudo cp phantomjs安裝的位置 /usr/local/bin
