PyCharm Import Error: Claims 'matplotlib' is not a package, but works successfully in IDLE
<p>Happy October everyone,</p>

<p>I've successfully downloaded modules before using either the pycharm installer or pip through the command screen, but for some reason when installing matplotlib pycharm cannot recognize it. I've uninstalled and reinstalled, I've installed through both methods, I've followed past similar questions asked on this site which make sure that you have the same interpreter and that it was installed in the right folder (<a href="https://stackoverflow.com/questions/35964994/pycharm-error-while-importing-even-though-it-works-in-the-terminal">pycharm error while importing, even though it works in the terminal</a>).</p>

<p>So, here's the whole problem. Here's is the simple code, submitted into both pycharm and IDLE:</p>

<pre><code>import matplotlib.pyplot as plt

plt.plot([1,2,3],[2,1,3])
plt.show()
</code></pre>

<p>When submitted into IDLE, my plot appears. When submitted into pycharm, the following error appears:
During handling of the above exception, another exception occurred:</p>

<pre><code>Traceback (most recent call last):
  File "C:/PythonProject/matplotlib.py", line 1, in &lt;module&gt;
    import matplotlib.pyplot as plt
  File "C:\PythonProject\matplotlib.py", line 1, in &lt;module&gt;
    import matplotlib.pyplot as plt
ImportError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
</code></pre>

<p>I am currently running Python 3.4, PyCharm 2016.2.3, and my matplotlib folders are indeed in my site-packages folder inside my Python34 folder. Also for further verification:</p>

<p><a href="https://i.stack.imgur.com/BePO4.png" rel="nofollow noreferrer">PyCharm installation</a></p>

<p>Please help I've become frustrated since this is the only module I've run into trouble with. I've scoured StackOverflow and related websites to help, I've made sure I have all the requirements, etc. </p>