Noob here to C++/python ... have played with php some and Fortran 77 back in the day LOL ... I'm stuck installing lxml.
I've installed Visual Studio C++ Express 2010, Python 3.4.2, BeautifulSoup and pip. I can't get lxml to install ... looks like I'm missing libxml2 and libxslt. I found pre-compiled libraries (libxml2-2.7.8.win32 & libxslt-1.1.26.win32) from http://xmlsoft.org/sources/win32/ and unpacked them, then put the paths to the bin folder into my Path, but still no luck. I saw some windows installers for lxml but only for python 3.2
Windows 7 32 bit
Python 3.4.2
Modules installed:
beautifulsoup 4.3.2
pip 1.5.6
requests 2.5.1
setuptools 2.1
virtualenv 12.0.5
Here is a link to my error log: damartin.net\files\pip.log
Any suggestions?
lxml actually has its own Windows installer. Have you tried that? It's here: https://pypi.python....7a2fbfeb628e5d8
You actually don't need to compile lxml or put it in your bin path. Python has a cool little function to make a folder part of its path semi-automatically. All you need to do is put a blank file called "__init__.py" in the folder.
So if the "biblegateway_mysword.py" script is in your Downloads folder, this is what you'd do:
- Create a blank file (like a blank text file) in your Downloads folder and call it "__init__.py".
- Download the "tar.gz" (source) file from here. (The download link as of today is this.)
- Extract/unzip the "tar.gz" file. (If Windows can't unzip "tar.gz" files, 7zip is awesome and will do it.)
- Move the new "lxml" folder to the folder where you created the blank "__init__.py" file.
- Now python will automatically search this folder whenever you call "import", meaning that it will work with my script.
Or, if you want to make your Downloads folder look less messy, you could move those files (the "biblegateway_mysword.py" script, the "lxml" folder, and the "__init__.py" file) anywhere you want. I put mine in a folder called "python" inside of my User folder.
I've almost finished translating this script into Go, so you could also wait for me to finish and upload the Go script. It's like 10 times faster than the python script cause Go is just phenomenal (almost as fast as C yet almost as simple as python). Plus, Go is easier to install.
Edited by GreenRaccoon23, 14 January 2015 - 09:58 AM.