title: Cannot install gurobi for python on macbook
body: <p>I use anaconda to install gurobi.</p>
  
  <ol>
  <li>I install the gurobi software</li>
  <li>I install anaconda</li>
  <li>I already have an academic license for gurobi.</li>
  </ol>
  
  <p>Then I create an environment for python 3.6.3 with anaconda.
  After installing gurobi, I cannot find the package gurobipy.</p>
  
  <p>I don't know why this happen.... </p>
  
  <hr>
  
  <p>Specific:</p>
  
  <pre><code>Last login: Wed Nov 29 01:39:25 on ttys000
  appledeMacBook-Pro-5:~ apple$ source activate python36
  (python36) appledeMacBook-Pro-5:~ apple$ conda install gurobi
  Fetching package metadata .............
  Solving package specifications: .
  
  # All requested packages already installed.
  # packages in environment at /Users/apple/anaconda3/envs/python36:
  #
  gurobi                    7.5.2                    py36_0    gurobi
  (python36) appledeMacBook-Pro-5:~ apple$ 
  </code></pre>
  
  <hr>
  
  <p>When I use pycharm</p>
  
  <pre><code>from gurobipy import *
  
  try:
      # Create a new model
      m = Model("mip1")
      # Create variables
      x = m.addVar(vtype=GRB.BINARY, name="x")
      y = m.addVar(vtype=GRB.BINARY, name="y")
      z = m.addVar(vtype=GRB.BINARY, name="z")
      # Set objective
      m.setObjective(x + y + 2 * z, GRB.MAXIMIZE)
      # Add constraint: x + 2 y + 3 z &lt;= 4
      m.addConstr(x + 2 * y + 3 * z &lt;= 4, "c0")
      # Add constraint: x + y &gt;= 1
      m.addConstr(x + y &gt;= 1, "c1")
      m.optimize()
      for v in m.getVars():
          print(v.varName, v.x)
          print('Obj:', m.objVal)
  except GurobiError:
      print('Error reported')
  </code></pre>
  
  <p>The result is</p>
  
  <pre><code>Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
  </code></pre>
  
  <hr>
  
  <p>I find that there must be something wrong with anaconda. I copy the package from anaconda to other environment and it works. There must be some package conflict with gurobi. And that's why exit code 139. I also intall mosek in anaconda. This solver can work under anaconda's environment. </p>
  
  <pre><code>from cvxpy import *
  import mosek
  
  
  # Create two scalar optimization variables.
  x = Variable()
  y = Variable()
  
  # Create two constraints.
  constraints = [x + y == 1,
                 x - y &gt;= 1]
  
  # Form objective.
  obj = Minimize(square(x - y))
  
  # Form and solve problem.
  prob = Problem(obj, constraints)
  prob.solve(solver=MOSEK)
  
  # The optimal dual variable (Lagrange multiplier) for
  # a constraint is stored in constraint.dual_value.
  print("optimal (x + y == 1) dual variable", constraints[0].dual_value)
  print("optimal (x - y &gt;= 1) dual variable", constraints[1].dual_value)
  print("x - y value:", (x - y).value)
  print(installed_solvers())
  </code></pre>
  
  <p>The result is</p>
  
  <pre><code>/Users/apple/anaconda3/envs/python36/bin/python "/Users/apple/Documents/GitHub/optimal-transport/作业/homework 5/practice.py"
  optimal (x + y == 1) dual variable -0.0
  optimal (x - y &gt;= 1) dual variable 2.00000600065164
  x - y value: 1.0000000011
  
  Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
  </code></pre>
  
  <hr>
  
  <p>The packages in anaconda</p>
  
  <pre><code>CVXcanon    0.1.1   0.1.1
  Mosek   8.1.33  7.0.123
  ca-certificates 2017.08.26  
  certifi 2017.11.5   2017.11.5
  cvxcanon    0.1.1   
  cvxpy   0.4.9   0.4.11
  dill    0.2.7.1 0.2.7.1
  ecos    2.0.4   2.0.5
  ecos    2.0.5   2.0.5
  fastcache   1.0.2   1.0.2
  gurobi  7.5.2   
  intel-openmp    2018.0.0    2018.0.0
  libcxx  4.0.1   
  libcxxabi   4.0.1   
  libedit 3.1 
  libffi  3.2.1   
  libgcc  4.8.5   
  libgfortran 3.0.1   
  mkl 2018.0.1    2018.0.0
  multiprocess    0.70.4  0.70.5
  ncurses 6.0 
  numpy   1.13.3  1.13.3
  openssl 1.0.2m  
  pip 9.0.1   9.0.1
  python  3.6.3   
  readline    7.0 6.2.4.1
  scipy   1.0.0   1.0.0rc2
  scs 1.2.6   2.0.1
  setuptools  36.5.0.post20170921 38.2.3
  setuptools  36.5.0  38.2.3
  six 1.11.0  1.11.0
  sqlite  3.20.1  
  tk  8.6.7   
  toolz   0.8.2   0.8.2
  wheel   0.30.0  0.30.0a0
  xz  5.2.3   
  zlib    1.2.11  
  </code></pre>