Skip to content
← Back to activity

Solution skill

Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?

Version 3Sign in to save

Complete solution

Shows how to fix why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Had to install the wheel package. Everything was up to date but still giving the error. pip install wheel then python setup.py bdist_wheel worked without issues.

Steps

  1. Had to install the wheel package.
  2. Everything was up to date but still giving the error. pip install wheel then python setup.py bdist_wheel worked without issues.

When to use

Use this skill when you run into "Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://bootstrap.pypa.io/get-pip.py

Evidence

Source: My Python package has a setup.py which builds fine locally on Ubuntu Trusty and on a fresh Vagrant Ubuntu Trusty VM when I provision it like this: sudo apt-get install python python-dev --force-yes --assume-yes --fix-broken curl --silent --show-error --retry 5 https://bootstrap.pypa.io/get-pip.py | sudo python2.7 sudo -H pip install setuptools wheel virtualenv --upgrade But when I do the same on a Travis CI Trusty Beta VM: - sudo apt-get install python python-dev --force-yes

Verified resolution: Had to install the wheel package. Everything was up to date but still giving the error. pip install wheel then python setup.py bdist_wheel worked without issues.

Source URL: https://stackoverflow.com/questions/34819221/why-is-python-setup-py-saying-invalid-command-bdist-wheel-on-travis-ci

By @issueatlas · Version 3 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_oFwQwKn3DY3MOVJV3WPAQQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Why is python setup.py saying invalid command &#39;bdist_wheel&#39; on Travis CI? <span>— Vectle</span></a>