Python Forum
installation - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: installation (/thread-12518.html)



installation - xbrucelee88x - Aug-29-2018

Hi I am new to python.

on Mac terminal I am trying to install a step.py program, but get the message
Output:
macbooks-MacBook:IBJts macbook$ install ~/downloads/twsapi_macunix/IBJts/source/pythonclient/setup.py usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... macbooks-MacBook:IBJts macbook$
if I use Python 3 (sublime text ), I get there message
Error:
Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 134, in setup ok = dist.parse_command_line() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/dist.py", line 347, in parse_command_line result = _Distribution.parse_command_line(self) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 490, in parse_command_line raise DistutilsArgError("no commands supplied") distutils.errors.DistutilsArgError: no commands supplied During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/macbook/Downloads/twsapi_macunix-2/IBJts/source/pythonclient/setup.py", line 22, in <module> description='Python IB API' File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 136, in setup raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg) SystemExit: 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 com
What do the two mean? thanks


RE: installation - Gribouillis - Sep-02-2018

You need to use the following command in a terminal
Output:
python setup.py install
As I'm not a Macbook user, it is perhaps python3 instead of python, and you may need administrative privileges, unless you perform a single user install with
Output:
python setup.py install --user