Trying to install the dependencies required for the export_png method in Bokeh - that being Selenium, Pillow and PhantomJS. To get this to work I used the conda-forge version of Selenium and the -c anaconda phantomjs version.
After installing the required packages and attempting to export a Bokeh graph as a PNG I get the following error
'RuntimeError: PhantomJS is not present in PATH. Try "conda install phantomjs" or "npm install -g phantomjs-prebuilt"
The only difference I can see for Phantomjs is that it's installed in the /anaconda/envs/virtualenv/bin opposed to my usual conda packages being installed in /anaconda/envs/virtualenv/lib/python3.6/site-packages/. As such, is it struggling to locate phantomJS when I try to import because of the location of the library?
Would really appreciate some help!
Thanks in advance
您是否尝试过将其添加到您的路径?
export PATH=/anaconda/envs/virtualenv/bin:$PATH
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.