我正在尝试从命令行安装 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'
请帮帮我。
答案 0 :(得分:0)
您需要通过输入以下命令来升级您的 setuptools
:
pip install --upgrade setuptools