Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

MacOsX run pserver failed: *--*.whl is not a valid wheel filename.

Open jayhenry opened this issue 9 years ago • 8 comments

mac上通过 pip install paddlepaddle之后,跑pserver

sudo -H paddle pserver --port=7164 --ports_num=1 --ports_num_for_sparse=1 --num_gradient_servers=1 --nics=eth0

报错

/usr/local/bin/paddle: line 82: [: 1.0.2: binary operator expected
  File "<stdin>", line 3
    if LooseVersion("1.0.2
                         ^
SyntaxError: EOL while scanning string literal
First time run paddle, need to install some python dependencies.
Requirement '/usr/local/bin/../opt/paddle/share/wheels/*--*.whl' looks like a filename, but the file does not exist
*--*.whl is not a valid wheel filename.
pip install wheels failed. 
Please use 'sudo paddle' at the first time you use PaddlePaddle
PaddlePaddle will install some python dependencies automatically.

检查目录 /usr/local/bin/../opt/paddle/share/wheels/并不存在

jayhenry avatar Dec 02 '17 07:12 jayhenry

先尝试升级下pip试试

pip install --upgrade pip

然后卸载之前的paddle,然后重新安装paddle试试

will-am avatar Dec 02 '17 10:12 will-am

@will-am 升级了pip然后重装paddlepaddle,还是报同样的错误

jayhenry avatar Dec 04 '17 02:12 jayhenry

先不run pserver,找个demo看看paddle能正常运行不

will-am avatar Dec 04 '17 03:12 will-am

/usr/local/bin/paddle 这个脚本需要更新下了。pip install之后不需要再检查whl包了。快速的解决方法是直接运行/usr/local/bin/paddle_pserver_main即可

typhoonzero avatar Dec 04 '17 03:12 typhoonzero

@jayhenry 麻烦贴下pip freeze| grep paddle的输出,确定下是不是装了更老版本的paddle。

Yancey0623 avatar Dec 04 '17 10:12 Yancey0623

@Yancey1989

paddle==1.0.2
paddlepaddle==0.10.0

jayhenry avatar Dec 05 '17 10:12 jayhenry

麻烦先执行下pip uninstall paddle paddlepaddle然后再重新安装下。

Yancey0623 avatar Dec 05 '17 11:12 Yancey0623

@Yancey1989 卸载重装运行,报错

/usr/local/bin/paddle: line 121: /usr/local/bin/../opt/paddle/bin/paddle_pserver_main: No such file or directory

@typhoonzero /usr/local/bin/paddle_pserver_main没有这个文件

jayhenry avatar Dec 06 '17 02:12 jayhenry