无法在Python Errno 2中生成分发文件没有这样的文件或目录

无法在Python Errno 2中生成分发文件没有这样的文件或目录,python,Python,我正在尝试用Python 3.4.3(Windows)构建分发文件 我目前在“nester”文件夹中有两个.py文件。第一个是“nester652399.py”,如下所示: “”“这是一个模块,提供打印功能以打印未知级别的列表”“” 第二个是“setup.py”,如下所示: 从distutils.core导入设置 setup( name = 'nester652399', version = '1.0.0', py_modules = ['nester'], au

我正在尝试用Python 3.4.3(Windows)构建分发文件

我目前在“nester”文件夹中有两个.py文件。第一个是“nester652399.py”,如下所示:

“”“这是一个模块,提供打印功能以打印未知级别的列表”“”

第二个是“setup.py”,如下所示:

从distutils.core导入设置

setup(
    name = 'nester652399',
    version = '1.0.0',
    py_modules = ['nester'],
    author = 'AnUp',
    description = 'printer of nested lists',
    )
在命令提示符中输入命令
C:\Python34\python.exe setup.py sdist
,会出现以下错误:

C:\Python34\python.exe: can't open file setup.py [Errno 2] no such file or directory 

我不熟悉Python和命令提示符,因此希望大家能对此有所了解。

您是否在setup.py文件所在的目录下运行该命令?这就解决了问题,谢谢。
C:\Python34\python.exe: can't open file setup.py [Errno 2] no such file or directory