Skip to content Skip to sidebar Skip to footer

Failing To Load Packages With Pycharm

I am trying to do some web scraping using python with PyCharm on a windows 10 machine. Some sites suggest using lxml library and it sounds good. I am trying to load the package but

Solution 1:

lxml needs C/C++ libraries libxml, libxstl so you have to install it first. But they are not Python modules but standard libraries - probably libxml.dll, libxstl.dll.

lxml may need also source code for this libraries or C/C++ header files *.h and C/C++ compiler to compile lxml

For Windows exists Unofficial Windows Binaries for Python Extension Packages with precompiled modules and there is lxml

But much easier (for Windows user) is use Anaconda distribution which installs the same Python from Python.org but with extra, precompiled modules like lxml. See list of modules.

PyCharm can use different Python with different project so you can have installed current Python and Anaconda and use them both in PyCharm.

Post a Comment for "Failing To Load Packages With Pycharm"