python - 程序“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吗?你有最新的 setuptools 和 wheel 包 (PATH) 吗?以下是升级包 python3 -m pip install --user --upgrade setuptools wheel 来源:https ://packaging.python.org/tutorials/packaging-projects/
推荐阅读
- php - (PHP) 试图控制包含函数
- r - R ggplot2 geom_bar barplot:在不修改数据框的情况下按计数对条形图进行排序,并且因子标签具有含义
- python-datetime - 通过排除 pandas 数据框中的非营业时间来计算两个日期之间的营业时间
- azure - 通过 API 检索 Azure AppInsights 实时指标
- vue.js - Vue没有看到从单独组件传递的函数
- javascript - 如何在 Web Worker 中使用 Azure App Insights?
- javascript - 我的复选框通过真假,但我需要 0 或 1
- python - Django:将带有 HTML 和 Django 模板标签的 Views.py 中的字符串变量注入 HTML 文件
- javascript - 通过javascript重新加载后,如何让我的下拉菜单选择一个值
- java - 如何声明一个通用变量