我的Python包有setup.py
它建立精細本地Ubuntu的忠實的和新鮮的流浪Ubuntu的忠實的虛擬機時,我提供這樣的:爲什麼python setup.py在Travis CI上說無效命令'bdist_wheel'?
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
但是,當我做同樣的一個特拉維斯CI忠實的測試版虛擬機:
- 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
我得到:
python2.7 setup.py bdist_wheel
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
這Why can I not create a wheel in python?相關,但注意我安裝磨片el和升級setuptools。
就我而言,'sudo -H pip install setuptools --upgrade'解決了這個問題。 –