title: error: invalid command 'bdist_wheel'
body: <p>On a RHEL machine</p>
  
  <p>I have some old Django projects that I'm moving to a new server, these were written for Python2.6, Django1.4.3</p>
  
  <p>I've installed python2.7, created the virtualenvs in my home directory, adjusted paths and references to the Python version. </p>
  
  <p>I created a virtualenv for Python2.7:</p>
  
  <pre><code>virtualenv -p python2.7 ~/.virtualenvs/my_site/
  </code></pre>
  
  <p>When I activate the virtualenv and then cd into the web site directory and run </p>
  
  <p><code>pip install -r requirements.txt</code> </p>
  
  <p>after successfully fetching all the libs, the following error is displayed for every line in requirements.txt: </p>
  
  <pre><code>Building wheels for collected packages: MySQL-python, Pillow...etc
  
  Running setup.py bdist_wheel for MySQL-python ... error
  Complete output from command /home/my_user/.virtualenvs/my_site/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-96k9a4/MySQL-python/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-ngSbQU --python-tag cp27:
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help
  
    error: invalid command 'bdist_wheel'
  </code></pre>
  
  <p>I've found many other similar questions on stackexchange and other sites, and tried the fixes but no luck!</p>
  
  <p><a href="https://stackoverflow.com/questions/26664102/why-can-i-not-create-a-wheel-in-python">Why can I not create a wheel in python?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/34819221/why-is-python-setup-py-saying-invalid-command-bdist-wheel-on-travis-ci?noredirect=1&amp;lq=1">Why is python setup.py saying invalid command &#39;bdist_wheel&#39; on Travis CI?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/37029385/cant-build-wheel-error-invalid-command-bdist-wheel?noredirect=1&amp;lq=1">Can&#39;t build wheel - error: invalid command &#39;bdist_wheel&#39;</a></p>
  
  <p>I have pip 10.0.1</p>
  
  <p>wheel IS installed (through <code>pip install wheel</code>), I've also run the following in my virtual env:</p>
  
  <pre><code>pip install --upgrade pip ('Requirement already up-to-date')
  pip install setuptools --upgrade ('Requirement already up-to-date')
  python setup.py bdist_wheel ('error: invalid command 'bdist_wheel'')
  </code></pre>
  
  <p>What else can I look at to fix this?</p>