title: pip install error: Microsoft Visual C++ 14.0 or greater is required
body: <p>I want to install <a href="https://github.com/twintproject/twint" rel="noreferrer">Twint</a> with:</p>
  <pre><code>pip install twint
  </code></pre>
  <p>But it failed and generating this error:</p>
  <pre><code>ERROR: Command errored out with exit status 1:
       command: 'c:\users\ramda\appdata\local\programs\python\python39\python.exe' -u
  -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'&quot;'&quot;';
  __file__='&quot;'&quot;'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\ramda\AppData\Local\Temp\pip-record-itnmxqui\install-record.txt'
  --single-version-externally-managed --compile --install-headers 'c:\users\ramda\appdata\local\programs\python\python39\Include\pycares'
           cwd: C:\Users\ramda\AppData\Local\Temp\pip-install-lbx86gde\pycares\
      Complete output (17 lines):
      running install
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-3.9
      creating build\lib.win-amd64-3.9\pycares
      copying src\pycares\errno.py -&gt; build\lib.win-amd64-3.9\pycares
      copying src\pycares\utils.py -&gt; build\lib.win-amd64-3.9\pycares
      copying src\pycares\_version.py -&gt; build\lib.win-amd64-3.9\pycares
      copying src\pycares\__init__.py -&gt; build\lib.win-amd64-3.9\pycares
      copying src\pycares\__main__.py -&gt; build\lib.win-amd64-3.9\pycares
      running build_ext
      generating cffi module 'build\\temp.win-amd64-3.9\\Release\\_cares.c'
      creating build\temp.win-amd64-3.9
      creating build\temp.win-amd64-3.9\Release
      building '_cares' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with &quot;Microsoft C++ Build Tools&quot;: https://visualstudio.microsoft.com/visual-cpp-build-tools/
      ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\users\ramda\appdata\local\programs\python\python39\python.exe' -u
  -c 'import sys, setuptools, tokenize; sys.argv[0] = '&quot;'&quot;'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'&quot;'&quot;';
  __file__='&quot;'&quot;'C:\\Users\\ramda\\AppData\\Local\\Temp\\pip-install-lbx86gde\\pycares\\setup.py'&quot;'&quot;';f=getattr(tokenize, '&quot;'&quot;'open'&quot;'&quot;', open)(__file__);code=f.read().replace('&quot;'&quot;'\r\n'&quot;'&quot;', '&quot;'&quot;'\n'&quot;'&quot;');f.close();exec(compile(code, __file__, '&quot;'&quot;'exec'&quot;'&quot;'))' install --record 'C:\Users\ramda\AppData\Local\Temp\pip-record-itnmxqui\install-record.txt'
  --single-version-externally-managed --compile --install-headers 'c:\users\ramda\appdata\local\programs\python\python39\Include\pycares' Check the logs for full command  output.
  </code></pre>
  <p>It said:</p>
  <blockquote>
  <p>error: Microsoft Visual C++ 14.0 or greater is required. Get it with &quot;Microsoft C++ Build Tools</p>
  </blockquote>
  <p>But I already have Microsoft Visual C++ 14.* in my machine. In fact that when I tried to install it again, it says &quot;it has already installed on your machine&quot; or something similar like that.</p>
  <p>I've tried a lot of ways that are written in <a href="https://stackoverflow.com/questions/29846087/microsoft-visual-c-14-0-is-required-unable-to-find-vcvarsall-bat">this</a> SO discussion. But no one works for me.</p>