Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Errors when trying to install with Pip.

Hello everyone,

I'm having trouble installing from the PyPI, using pip in CMD.

I've found a package I'm interested in (orbit, https://pypi.python.org/pypi/orbit/0.2) start a VENV in CMD, punch in pip install orbit... it downloads and thinks for a while then throws back errors:

C:\Users\username\AppData\Local\Temp\easy_install-y6y867l_\lxml-3.5.0\temp\xmlXPathInit67jlgy6a.c(1): fatal error C1083: Cannot open include file: 'libxml/xpath.h': No such file or directory
*********************************************************************************
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
*********************************************************************************
error: Setup script exited with error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2

I've tried a couple of packages, and about half of them install and half of them throw back this error. I've also tired on my PC and my Mac and I'm getting the same result, which slightly different paths in the error message obviously

Anyone got any thoughts?

Thanks

1 Answer

Try the following:

python -m pip install orbit

Otherwise maybe you could try install libxm2, whatever that is...!
https://www.zlatkovic.com/libxml.en.html
http://xmlsoft.org/sources/win32/