Python: how to instal "requests"
<p>I have Python version 3.5.2. I am trying to use <code>requests</code> called through <code>import requests</code> but I get the following error:</p>

<pre><code>Traceback (most recent call last):
  File "&lt;pyshell#26&gt;", line 1, in &lt;module&gt;
    import requests
ImportError: No module named 'requests'
</code></pre>

<p>Reading some guides, I can see that I have to instal the module because it is not present in the system.</p>

<p>So I downloaded the file but now I don't know what to do. I have read that I should instal it on the Terminal (I have a Mac). But I have never used the Terminal: what code should I used?</p>

<p>First check what version of python your shell will be running; sometimes the Python 3 executable is installed as <code>python3</code> in <code>/usr/bin</code> (or wherever else it could be installed; ie. <code>/usr/local/bin)</code>, but I've seen it as just plain <code>python</code> on some machines depending on how it was installed.</p>

<pre><code>python --version
</code></pre>

<p>If you see <code>Python 3.5.2</code>; then run:</p>

<pre><code>python -m pip install requests
</code></pre>

<p>If not; then try doing the same but with <code>python3</code> instead of <code>python</code>.</p>

python terminal python-requests