You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If you get errors about various files missing while compiling <codeclass="gs-code">lxml</code>, you must install headers for the <codeclass="gs-code">libxml</code>, <codeclass="gs-code">libxslt</code> and <codeclass="gs-code">zlib</code> libraries, like so:</p>
114
+
<p>If you get an error to the effect of <codeclass="gs-code">Python.h not found</code>, you need to install development packages for Python.</p>
<p>Note that many other distros/operating systems (including Arch Linux, *BSD and OS X) do not require such packages, as C headers are included with the base distribution of Python.</p>
<p>If you get an error to the effect of <codeclass="gs-code">Python.h not found</code>, you need to install development packages for Python.</p>
137
+
<p>If you get errors about various files missing while compiling <codeclass="gs-code">lxml</code>, you must install headers for the <codeclass="gs-code">libxml</code>, <codeclass="gs-code">libxslt</code> and <codeclass="gs-code">zlib</code> libraries, like so:</p>
<p>Note that many other distros/operating systems (including Arch Linux, *BSD and OS X) do not require such packages, as C headers are included with the base distribution of Python.</p>
<p>If gcc/cc1 is killed when compiling lxml, you might not have enough RAM — lxml requires at least ~1.5 GB of RAM to compile. To fix this, you can:</p>
160
+
<ul>
161
+
<li>Install a system package and create your virtualenv with the <codeclass="gs-code">--system-site-packages</code></li>
162
+
<li>Install a system package and symlink it from /usr/lib/pythonX.Y/site-packages to your virtualenv</li>
163
+
<li>Use a temporary <ahref="https://wiki.archlinux.org/index.php/Swap#Swap_file_creation">swapfile</a> to compile lxml</li>
164
+
<li>Create a wheel on a system with more RAM with <codeclass="gs-code">STATIC_DEPS=true pip wheel lxml</code> (must have the same architecture) and install that instead</li>
0 commit comments