Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python: install dash with conda

How can I install dash step-by-step? I'm really new at importing packages in python. I have python 3.6.4 on my computer and I'm trying to install the dash package, dash_core_components.

I tried to type in the anaconda prompt: conda install dash (not available for current channels) I also tried to install pip through conda: conda install pip then pip install dash ... but got an error also.

I'm really new and honestly don't really know what I'm doing. I got a pop-up from spyder when I open it saying to never use pip, it can break stuff. I don't understand why.

like image 455
mcb Avatar asked Apr 02 '18 15:04

mcb


People also ask

How do I install dash Library in anaconda?

Step 2: Install the latest version of pip using the following command in the Conda terminal. Step 3: At first, the terminal of Anaconda or Conda should be opened. Then the following command should be used conda install -c conda-forge dash, it is sufficient to install all dependencies (renderer, components, plotly..)

Can I install Python using conda?

The Earth Engine Python API can be installed to a local machine via conda, a Python package and environment manager. Conda is bundled with Anaconda and Miniconda Python distributions.

Is Dash a Python library?

Dash is an open-source Python framework used for building analytical web applications. It is a powerful library that simplifies the development of data-driven applications. It's especially useful for Python data scientists who aren't very familiar with web development.

What is Dash package in Python?

Dash is a python framework created by plotly for creating interactive web applications. Dash is written on the top of Flask, Plotly. js and React. js. With Dash, you don't have to learn HTML, CSS and Javascript in order to create interactive dashboards, you only need python.


3 Answers

Here are the commands to get conda to install dash:

conda install -c conda-forge dash-renderer
conda install -c conda-forge dash 
conda install -c conda-forge dash-html-components 
conda install -c conda-forge dash-core-components
conda install -c conda-forge plotly

If you go to the Anaconda site and search for the package they will give you the conda command to install the package.

like image 64
Paul D. Avatar answered Oct 17 '22 07:10

Paul D.


Along with the others. You can also try the following:

import pip

pip.main(['install', 'dash-renderer', '--user'])
pip.main(['install', 'dash', '--user'])
pip.main(['install', 'dash-html-components', '--user'])
pip.main(['install', 'dash-core-components', '--user'])
pip.main(['install', 'plotly', '--user'])

Note: This will install the packages only for the current session.

or

Try the following too:

!pip install dash-renderer
!pip install dash
!pip install dash-html-components
!pip install dash-core-components
!pip install plotly
like image 2
Alpha001 Avatar answered Oct 17 '22 06:10

Alpha001


Per most recent update from Dash website, the below should now be sufficient:

pip install dash==1.8.0

Note: starting with dash 0.37.0, dash automatically installs dash-renderer, dash-core-components, dash-html-components, and dash-table, using known-compatible versions of each. You need not and should not install these separately any longer, only dash itself.

Per Lucas's comment above, with Anaconda distribution use :

conda install -c conda-forge dash
like image 2
fkPtn Avatar answered Oct 17 '22 07:10

fkPtn