How to debug charts package 'No module named &

2019-07-12 04:12发布

问题:

I am working on a Windows machine with Python3 and IPython notebook in the Anaconda suite. I ran a

pip install charts

to install the package (I am trying to find my way through some flexible and interactive charting...Any suggestion appreciated).

Installation seems to go well, but a import charts command generates an error:

ImportError                               Traceback (most recent call last)
<ipython-input-1-5eb3a6e89685> in <module>()
----> 1 import charts

C:\Users\my_username\AppData\Local\Continuum\Anaconda3\lib\site-packages\charts\__init__.py in <module>()
      3 __version__ = '0.4.3'
      4 
----> 5 from plot import plot, plotasync, line, area, spline, pie
      6 from server import run_server
      7 

      ImportError: No module named 'plot'

If I look into the charts directory - however - I can see a module called 'plot', along with other modules

I found this question which is somewhat related, it looks like something like path issues. But I'm pretty much stuck.

Thanks for helping, Michele

回答1:

Write the directory you mentioned containing the plot etc. into pythonpath.

Then try again. More about the use of pythonpath you can read here.



标签: python charts