当我执行这段代码时`
from setuptools import setup, find_packages
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "C:/Users/DELL/Downloads/cashflower-main/README.md").read_text()
setup(
author="Zuzanna Chmielewska",
description="Framework for actuarial cash flow models",
include_package_data=True,
long_description=long_description,
long_description_content_type="text/markdown",
name="tutorials",
packages=find_packages(include=["tutorials", "tutorials.*"]),
)
我得到了错误……发生异常:SystemExit用法:setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]或:setup.py --help [cmd 1 cmd 2...]或:setup.py --help-commands或:setup.py cmd --help
error: no commands supplied
distutils.errors.DistutilsArgError: no commands supplied
During handling of the above exception, another exception occurred:
File "C:\Users\DELL\Downloads\cashflower-main\tutorials\setup.py", line 8, in <module>
setup(
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 commands supplied
如何解决setup.py中的错误
1条答案
按热度按时间ivqmmu1c1#
setup.py
脚本用于从源文件构建Python包。您可以使用
wheel
软件包来构建:可以使用以下命令从源文件生成包:
分别用于源或轮分布。
但是,您不需要自己构建包。该包已经在PyPI上可用。
您可以在终端中使用以下命令安装它:
之后,您将开始使用该软件包。下面是the documentation。