AxeldeRomblay / MLBox

MLBox is a powerful Automated Machine Learning python library.
https://mlbox.readthedocs.io/en/latest/
Other
1.49k stars 273 forks source link

Setup script exited with usage: setup.py [global_opts] error: no commands supplied #7

Closed NeerajSarwan closed 7 years ago

NeerajSarwan commented 7 years ago

Hi AxeldeRomblay,

System Information Ubuntu 16.04

I was actually trying to install your MLBox to give it a try. The steps I took were - 1- clone the repository. 2- run setup.py file.

The building part finishes till 100% but then throws a couple of errors. I am posting the actual error below.

[100%] Linking CXX shared library /tmp/easy_install-1gz4zwpu/lightgbm-2.0.2/lightgbm/lib_lightgbm.so [100%] Built target _lightgbm Install lib_lightgbm from: ['lightgbm/lib_lightgbm.so'] error: Setup script exited with 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: no commands supplied.

AxeldeRomblay commented 7 years ago

Hello ! Yes it seems there is a problem while installing lightgbm from PyPI.

I think it should work...

ncherel commented 7 years ago

Try python setup.py install If you omit install you will only install the required packages

NeerajSarwan commented 7 years ago

@AxeldeRomblay I ran your commands and it said - mlbox-0.2.2-py2-none-any.wheel is not a supported wheel on this platform.

I am assuming I need a py3 wheel since I am on python 3 right now. If that is the case, how do I achieve this ?

NeerajSarwan commented 7 years ago

@NCherel

I already tried running python setup.py install but it throws the error mentioned in the original issue.

AxeldeRomblay commented 7 years ago

At the moment mlbox only works for python 2. but we are working on this point to make it compatible with python 3. :)

brunosez commented 7 years ago

I have the same issue with conda virtualenv , ubuntu 14.04. it worked correctly with whell install...

arunkumar3234 commented 5 years ago

@NeerajSarwan I have the same issue help me overcome with this Thanks

themaxbear commented 5 years ago

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-comma

Henri-Gerard commented 5 years ago

You should use either python setup.py install if you just want to use the package or python setup.py develop if you want to contribute.

This error comes often when one forgot to provide "install" or "develop" argument

CrystaljhSun commented 4 years ago

You should use either python setup.py install if you just want to use the package or python setup.py develop if you want to contribute.

This error comes often when one forgot to provide "install" or "develop" argument

Really, when I add the command 'install' it seems to work now. Thank you!

Kulsumganihar commented 4 years ago

Tried with all the solutions provided here, still getting same error. After using python setup.py install all the required packages are getting installed. But when I try to run the file I am getting following error.

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: no commands supplied

ihusky02 commented 4 years ago

Hi,

I try install youtube-dl-gui for Zorin 15 and python setup.py install command worked, but I don`t see this app?

https://pastebin.com/wLBvUW3U

kazimsayed954 commented 4 years ago

python setup.py install

or

python setup.py build

or

python setup.py build_exe

messiasab commented 3 years ago

ValueError: Cannot find required utility patchelf in PATH

mbrsagor commented 2 years ago

python setup.py bdist_wheel

The code does not work. below is the error message:

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'

Ibrah-N commented 5 months ago

Facing the same issue