Paddle2ONNX icon indicating copy to clipboard operation
Paddle2ONNX copied to clipboard

bash: paddle2onnx: command not found => How to fix it?

Open PeterKim1 opened this issue 1 year ago • 2 comments

Please fill in the information below so that we can solve the problem quickly, Thanks !

Describe the bug A clear and concise description of what the bug is.

First, install paddle2onnx.

image

After that, I try to use paddle2onnx, then command not found error occur.

How can I fix it?

image

Informations (please complete the following information):

  • Inference engine for deployment:
  • Why convert to onnx:Need to convert TensorRT.
  • Paddle2ONNX Version: 1.1.0
  • Email/Wechat/Phone:

Screenshots

Additional context

PeterKim1 avatar Jan 30 '24 04:01 PeterKim1

Hi @PeterKim1, please check if paddle2onnx is in your environment variables, it is recommended to use paddle2onnx in a virtual environment.

GreatV avatar Feb 19 '24 12:02 GreatV

as a workaround, please try: python -mpaddle2onnx.command, paddle2onnx command is kind of shortcut for this module.

BTW: I am confused by the versioning of this package, we have package with version greater than 1.0.7 on pip, see: https://pypi.org/project/paddle2onnx/#history, but the latest tag in the code repository is 1.0.7, anyone knows the reason?

jzhang533 avatar Mar 08 '24 02:03 jzhang533