title: How to install python module websockets with pip
body: <p>I'm trying to install the python module websockets with pip and I get this setup error message :</p>
  
  <pre><code>:~$ pip install websockets
  Collecting websockets
    Using cached websockets-4.0.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 "/tmp/pip-build-qzcf51/websockets/setup.py", line 11, in &lt;module&gt;
          with open(readme_file, encoding='utf-8') as f:
      TypeError: 'encoding' is an invalid keyword argument for this function
  
      ----------------------------------------
  Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qzcf51/websockets/
  </code></pre>
  
  <p>I tried to change the language of my prompt like this :</p>
  
  <pre><code>export LANG=
  </code></pre>
  
  <p>no issue I checked  <code>pip update</code> :</p>
  
  <pre><code>:~$ pip install -U setuptools pip
  Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages
  Requirement already up-to-date: pip in ./.local/lib/python2.7/site-packages
  </code></pre>
  
  <p>My version of python is Python 2.7.12</p>
  
  <p>Thanks for any helps</p>