title: Unable to install gensim in python
body: <p>I have problem installing gensim module. I installed numpy and scipy dependent modules successfully but was getting error while installing gensim.
  I tried solutions given in <a href="https://stackoverflow.com/questions/35991403/python-pip-install-gives-command-python-setup-py-egg-info-failed-with-error-c">Python pip install gives &quot;Command &quot;python setup.py egg_info&quot; failed with error code 1&quot;</a>
  but none of them worked.</p>
  
  <p>Here is the error:</p>
  
  <pre><code>    &gt;pip install --target="D:\python\packages" gensim
  Collecting gensim
    Using cached gensim-2.3.0-cp36-cp36m-win32.whl
  Collecting scipy&gt;=0.18.1 (from gensim)
    Using cached scipy-0.19.1.tar.gz
      Complete output from command python setup.py egg_info:
      Traceback (most recent call last):
        File "&lt;string&gt;", line 1, in &lt;module&gt;
        File "C:\Users\abcde\AppData\Local\Temp\pip-build-hu8lzsjz\scipy\setup.py", line 416, in &lt;module&gt;
          setup_package()
        File "C:\Users\abcde\AppData\Local\Temp\pip-build-hu8lzsjz\scipy\setup.py", line 412, in setup_package
          setup(**metadata)
        File "c:\program files (x86)\python36-32\lib\distutils\core.py", line 108, in setup
          _setup_distribution = dist = klass(attrs)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist.py", line 315, in __init__
          self.fetch_build_eggs(attrs['setup_requires'])
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist.py", line 361, in fetch_build_eggs
          replace_conflicting=True,
        File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\__init__.py", line 850, in resolve
          dist = best[req.key] = env.best_match(req, ws, installer)
        File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\__init__.py", line 1122, in best_match
          return self.obtain(req, installer)
        File "c:\program files (x86)\python36-32\lib\site-packages\pkg_resources\__init__.py", line 1134, in obtain
          return installer(requirement)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\dist.py", line 429, in fetch_build_egg
          return cmd.easy_install(req)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\command\easy_install.py", line 653, in easy_install
          not self.always_copy, self.local_index
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 636, in fetch_distribution
          dist = find(requirement)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 617, in find
          dist.download_location = self.download(dist.location, tmpdir)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 566, in download
          found = self._download_url(scheme.group(1), spec, tmpdir)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 805, in _download_url
          return self._attempt_download(url, filename)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 811, in _attempt_download
          headers = self._download_to(url, filename)
        File "c:\program files (x86)\python36-32\lib\site-packages\setuptools\package_index.py", line 726, in _download_to
          block = fp.read(bs)
        File "c:\program files (x86)\python36-32\lib\http\client.py", line 449, in read
          n = self.readinto(b)
        File "c:\program files (x86)\python36-32\lib\http\client.py", line 493, in readinto
          n = self.fp.readinto(b)
        File "c:\program files (x86)\python36-32\lib\socket.py", line 586, in readinto
          return self._sock.recv_into(b)
        File "c:\program files (x86)\python36-32\lib\ssl.py", line 1002, in recv_into
          return self.read(nbytes, buffer)
        File "c:\program files (x86)\python36-32\lib\ssl.py", line 865, in read
          return self._sslobj.read(len, buffer)
        File "c:\program files (x86)\python36-32\lib\ssl.py", line 625, in read
          v = self._sslobj.read(len, buffer)
      ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in C:\Users\abcde\AppData\Local\Temp\pip-build-hu8lzsjz\scipy\
  </code></pre>