Python – Setting up the Bokeh Environment
Last Updated :
22 Jun, 2020
Bokeh is supported on CPython versions 3.6+ only both with Standard distribution and Anaconda distribution. Other Python versions or implementations may or may not function. Current version of Bokeh is 2.0.2 . Bokeh package has the following dependencies:
1. Required Dependencies
- PyYAML>=3.10
- python-dateutil>=2.1
- Jinja2>=2.7
- numpy>=1.11.3
- pillow>=4.0
- packaging>=16.8
- tornado>=5
- typing_extensions >=3.7.4
2. Optional Dependencies
- Jupyter
- NodeJS
- NetworkX
- Pandas
- psutil
- Selenium, GeckoDriver, Firefox
- Sphinx
How to install the bokeh package?
There are a few different ways to install Bokeh. If you are using Anaconda distribution, use conda package manager as follows ?
conda install bokeh
This installs all the dependencies that are need to be run Bokeh. If all the above said dependencies such as NumPy, Pandas, and Redis are installed, then you can install the bokeh package from PyPI using pip at the command line:
pip install bokeh
How to check Bokeh is installed or not?
To check whether the Bokeh is successfully installed, do the following:
- Import bokeh package in Python terminal
- Check the bokeh version
