I\'m starting to learn about python development in a new project.
I got setup almost everything right, but only this import HTML
that keeps given me some error that
Looking the given screenshots and tags I suppose your are using Anaconda
(which I have no experience but it is still Python, anyway) and the IDE is not resolving the import.
Make sure you have installed/updated HTML.py
conda install HTML
At your IDE go to Window > Preferences > Python Interpreter
At Libraries tab make sure you have the following folders added to your PYTHONPATH
:
That should do the trick.
Important: try to always install your libraries through conda
(or pip
when using Python directly). It will install things where it should be. ;)
It looks like you are using anaconda, have you tried installing it the anaconda way?
conda install HTML
Also do you by any chance have 2 version of Python on your system?
If the package is unavailable you'll have to user pip
. If you don't have pip, from your command line write:
python get-pip.py
pip install HTML