
SVN 저장소를 체크아웃하고 python setup.py
Python 스크립트인 Ubuntu 10.04 터미널에서 시도했지만 다음 오류가 발생합니다.
abc@def:~/Downloads/a-read-only$ python setup.py
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
저는 Python에 대한 경험이 없으므로 도움을 주시면 감사하겠습니다.
답변1
다음 명령을 시도해 보십시오:
python setup.py install
답변2
"cmd1"을 추가해야 할 것 같습니다.
그것이 무엇인지 알아 보려면 다음을 입력하십시오.
python setup.py --help
답변3
우분투에서 Python을 설치하려면 터미널 명령을 사용할 수 있습니다. 다음을 사용해 보세요:
sudo apt-get install python3
Python이 성공적으로 설치된 후. 터미널에 'python3'을 입력하여 Python 터미널을 실행하고 명령이 작동하는지 확인할 수 있습니다. 또는 다음을 사용하여 Python 스크립트를 실행할 수 있습니다.
python3 myfile.py
답변4
setup.py
인수 와 함께 setup()에 대한 호출도 포함될 수 있습니다 script_args
.
from setuptools import setup, Extension
setup(ext_modules = [Extension(...)],
script_args = ['build_ext'])
여기에는 명확히 명시되어 있지 않지만 https://setuptools.pypa.io/en/latest/deprecated/distutils/apiref.html, build_ext 명령은 다음과 같이 실행됩니다.
$ python setup.py
setup.py에 명령을 제공하지 않고.