# Can't import dash\_core\_components

**URL:** <https://community.plotly.com/t/cant-import-dash-core-components/44655>\
**Category:** Dash Python\
**Created:** [September 8, 2020, 12:30pm UTC](https://community.plotly.com/t/cant-import-dash-core-components/44655 "2020-09-08T12:30:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobslf](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bobslf](https://community.plotly.com/u/bobslf)\
**Post date:** [September 8, 2020, 12:30pm UTC](https://community.plotly.com/t/cant-import-dash-core-components/44655/1 "2020-09-08T12:30:22Z")

</div>

I installed dash on ubuntu 18.04:  
pip3 install dash

Then I have a test program, test.py, and I get the following error. What is wrong?

import os, pandas as pd  
import plotly  
import dash  
import dash\_core\_components as dcc \<\<\<\<\<\<\<\<\<\<\<\<\< error here:  
Exception has occurred:SystemExit  
1  
File "…/test.py, line 4, in   
import dash\_core\_components as dcc  
File "…/test.py, line 3, in   
import dash

---

<div class="post-metadata">

**Author:** ![Lheira](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@Lheira](https://community.plotly.com/u/Lheira)\
**Post date:** [September 8, 2020, 2:00pm UTC](https://community.plotly.com/t/cant-import-dash-core-components/44655/2 "2020-09-08T14:00:17Z")

</div>

Are you sure dash core components was installed with Dash?

---

<div class="post-metadata">

**Author:** ![bobslf](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@bobslf](https://community.plotly.com/u/bobslf)\
**Post date:** [September 8, 2020, 2:21pm UTC](https://community.plotly.com/t/cant-import-dash-core-components/44655/3 "2020-09-08T14:21:58Z")

</div>

It turned out that the problem was that my test program was named ‘test.py’. That is bad. I renamed it to testdash.py and now it works.
