title: Problem with importing softmax from scipy and using it once imported from sklearn
body: <p>I have installed scipy using conda.</p>
  
  <p>When I try to import softmax from scipy I get an error:</p>
  
  <pre><code>from scipy.special import softmax
  ---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-34-35eed14e1f88&gt; in &lt;module&gt;
  ----&gt; 1 from scipy.special import softmax
  
  ImportError: cannot import name 'softmax' from 'scipy.special' (C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\scipy\special\__init__.py)
  </code></pre>
  
  <p>On the other hand I can import softmax from sklearn but then I get an exception when I try to put it in use:</p>
  
  <pre><code>from sklearn.utils.extmath import softmax
  X = np.array([[2, 3], [4,5]])
  softmax(X)
  ---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-35-781ae2561cff&gt; in &lt;module&gt;
        1 X = np.array([[2, 3], [4,5]])
  ----&gt; 2 softmax(X)
  
  ~\Anaconda3\envs\tf2\lib\site-packages\sklearn\utils\extmath.py in softmax(X, copy)
      597     max_prob = np.max(X, axis=1).reshape((-1, 1))
      598     X -= max_prob
  --&gt; 599     np.exp(X, X)
      600     sum_prob = np.sum(X, axis=1).reshape((-1, 1))
      601     X /= sum_prob
  
  TypeError: ufunc 'exp' output (typecode 'd') could not be coerced to provided output parameter (typecode 'l') according to the casting rule ''same_kind''
  </code></pre>