微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

尝试在python中安装ant模块并出现此错误

如何解决尝试在python中安装ant模块并出现此错误

我正在尝试从命令行安装 ant 模块,但出现此错误

     function MxheaderfooterShape(bounds,fill,stroke,strokewidth) : mxShape{
        let val = mxShape.call(this);
        this.bounds = bounds;
        this.fill = fill;
        this.stroke = stroke;
        this.strokewidth = (strokewidth != null) ? strokewidth : 1;
        return val;
    }

当我尝试通过 pyCharm IDE 安装它时,出现此错误

C:\Users\97252>pip install ant

Collecting ant
Using cached ant-0.1.0.tar.gz (18 kB)
Collecting msgpack-python==0.1.10

Using cached msgpack-python-0.1.10.tar.gz (48 kB)
Collecting pyserial==2.5

Using cached pyserial-2.5.tar.gz (106 kB)

  WARNING: Generating Metadata for package pyserial produced Metadata for project name pyserial-py3k. Fix your #egg=pyserial fragments.

ERROR: Requested pyserial-py3k from https://files.pythonhosted.org/packages/c3/9c/9f97e7749c2373031e5dab6e47adab3eabbd5720615d98845ff8bad5b273/pyserial-2.5.tar.gz#sha256=eddd22280e0dac0888c6cddd8906ebd902fa42467fee151c43ecde4196bbf511 (from ant) has different name in Metadata: 'pyserial-py3k'

请帮帮我。

解决方法

您需要通过输入以下命令来升级您的 setuptools

pip install --upgrade setuptools

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。