installing glpk cvxopt with conda
<p>I have set up an environment where all packages are managed by conda (even for gcc). What i want to do is to install, cvxopt with GLPK support:</p>

<pre><code>CVXOPT_BUILD_GLPK=1 pip install cvxopt 
</code></pre>

<p>Doing tha directly leads to </p>

<pre><code>src/C/glpk.c:24:18: fatal error: glpk.h: No such file or directory
 #include &lt;glpk.h&gt;
                  ^
compilation terminated.
error: command 'gcc' failed with exit status 1
</code></pre>

<p>So I install glpk with conda with:</p>

<pre><code>conda install -c conda-forge glpk=4.60
</code></pre>

<p>and try again: </p>

<pre><code>CVXOPT_BUILD_GLPK=1 pip install cvxopt 
</code></pre>

<p>Getting error:</p>

<pre><code>src/C/umfpack.c:23:21: fatal error: umfpack.h: No such file or directory
 #include "umfpack.h"
                     ^
compilation terminated.
error: command 'gcc' failed with exit status 1
</code></pre>

<p>So I try to resolve it with:</p>

<pre><code>conda install -c conda-forge scikit-umfpack=0.2.3
</code></pre>

<p>So in this case, <code>CVXOPT_BUILD_GLPK=1 pip install cvxopt</code> is successful, </p>

<p>However, when i try to run a python programme: </p>

<pre><code>Traceback (most recent call last):
  File "my_programme.py", line 19, in &lt;module&gt;
    from cvxopt import normal, matrix
  File "/home/me/anaconda2/lib/python2.7/site-packages/cvxopt/__init__.py", line 32, in &lt;module&gt;
    import cvxopt.base
ImportError: /home/me/anaconda2/lib/python2.7/site-packages/cvxopt/base.so: undefined symbol: _gfortran_st_write_done
</code></pre>

<p>I do not know how to resolve this then.... Any help? Thank you. I will prefer to manage all programmes using conda....</p>

<p><strong>Edit</strong>: afterwards I tried:</p>

<pre><code>pip uninstall cvxopt
conda install -c jjhelmus cvxopt_glpk=1.1.6
</code></pre>

<p>then I got this error:</p>

<pre><code>  File "my_code.py", line 19, in &lt;module&gt;
    from cvxopt import normal, matrix
  File "/home/me/anaconda2/lib/python2.7/site-packages/cvxopt/__init__.py", line 32, in &lt;module&gt;
    import cvxopt.base
ImportError: liblapack.so.3gf: cannot open shared object file: No such file or directory
</code></pre>

<p>I am really not sure why this has to be so complicated even after i uniformly manage my packages using conda....Further, after i do all this mess... my system becomes buggy also. I am so upset about all this....</p>

<p>Now... I am on the verge of breaking down.... I completely remove conda and install conda clean... and then do</p>

<pre><code>conda install -c jjhelmus cvxopt_glpk=1.1.6
</code></pre>

<p>After running the programme, I get:</p>

<pre><code>Traceback (most recent call last):
  File "extract_small_confgs_from_GMC.py", line 19, in &lt;module&gt;
    from cvxopt import normal, matrix
  File "/home/me/anaconda2/lib/python2.7/site-packages/cvxopt/__init__.py", line 32, in &lt;module&gt;
    import cvxopt.base
ImportError: liblapack.so.3gf: cannot open shared object file: No such file or directory
</code></pre>

<p>Oh my god.....</p>