I got this error message ” Error: Microsoft visual C++ 10.0 is required (Unable to find vcvarsall.bat) ” when I was trying to install lxml package on windows 10 using the command
pip install lxml
Here is the solution to fix this problem
Step 1 – Upgrade pip, setuptools and virtualenv
python -m pip install -U pip
pip install -U setuptools
pip install -U virtualenv
Step 2 – Download the latest version of lxml MS Windows installer from this link https://pypi.python.org/pypi/lxml/. Then move the downloaded file
lxml-3.6.0.win32-py3.2.exe to c:\python35\Scripts ( or where your python package is installed ).
Then use easy_install to install the windows installer
easy_install lxml-3.6.0.win32-py3.2.exe
Step 3 – Now you should be able to install the lxml package using easy_install
easy_install lxml
If everything works you will see a message similar to this
Installed python\lib\site-packages\lxml-3.6.0-py3.5-win32.egg
Processing dependencies for lxml=3.6.0
Finished processing dependencies for lxml=3.6.0