首页 > 解决方案 > 程序“python”无法运行:

问题描述

我正在尝试进行 python 设置,但是当我运行命令“setup.py sdist”时,它不起作用。

我已经尝试过使用 cmd,PowerShell 显示了这个结果

from setuptools import setup
setup(
    name="paquete",
    version="0.1",
    description="Paquete de redondeo y potencia",
    author="Sebastian Hernandez",
    author_email="",
    url="",
    packages=['calculos','calculos.redondeo_potencia']

)

标签: python

解决方案


你确定你的环境变量中有python吗?你有最新的 setuptools 和 wheel 包 (PATH) 吗?以下是升级包 python3 -m pip install --user --upgrade setuptools wheel 来源:https ://packaging.python.org/tutorials/packaging-projects/


推荐阅读