Installation for pyzmq for Windows fails with error C2143, C4142
<p>I have a windows 7 machine with python 2.7 and I am trying to install <code>pyzmq</code> following <a href="http://zeromq.org/docs:windows-installations" rel="nofollow">these</a> steps. I built <code>libzmq</code> got the binaries and copied them from <code>libzmq\bin\Win32\Debug\v140\dynamic\</code> to <code>libzmq\lib\</code> so the next step will work(compiler will have access to /lib and /includes from the same parent folder). But, on this step: </p>

<blockquote>
  <p>$ python setup.py configure --zmq=../libzmq</p>
</blockquote>

<p>I installed <code>pyzmq</code> and <code>libzmq</code> on the same parent folder, as in the installation description related to <code>pyzmq</code>, <code>libzmq</code> is here: <code>../libzmq</code></p>

<p>But when I need to configure the <code>pyzmq</code>, I get this error: 
<a href="http://i.stack.imgur.com/ulF87.png" rel="nofollow"><img src="http://i.stack.imgur.com/ulF87.png" alt="enter image description here"></a></p>

<p>I have VS Community 2015 installed and everything seems fine.</p>

<p>ZMQ usually provides <code>sln</code> files that will build from Microsoft Visual Studio. You will have to dig around a little to find it. You are better off trying to get that to work then going directly from the  <code>python setup.py</code> that you are currently attempting. Note that you also need <code>libsodium</code> to be built and installed. Thankfully, they also provide Microsoft <code>sln</code> files.</p>

<p>In any case, you are probably better using one of the Python wheels like those from Christoph <a href="http://www.lfd.uci.edu/~gohlke/pythonlibs/" rel="nofollow">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a></p>

<p>Just do</p>

<p><code>pip install &lt;wheel file&gt;</code></p>

<p>and you should be good.</p>

<p>Good luck!</p>

python windows pyzmq