transformers icon indicating copy to clipboard operation
transformers copied to clipboard

No module named transformers.onnx

Open co-develop-drv opened this issue 2 years ago • 1 comments

System Info

Copy-and-paste the text below in your GitHub issue and FILL OUT the two last points.

  • transformers version: 4.5.1
  • Platform: Linux-5.19.0-35-generic-x86_64-with-debian-bookworm-sid
  • Python version: 3.6.13
  • PyTorch version (GPU?): 1.5.0 (False)
  • Tensorflow version (GPU?): not installed (NA)
  • Using GPU in script?: No
  • Using distributed or parallel set-up in script?: No

Who can help?

No response

Information

  • [X] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

python -m transformers.onnx -help

Expected behavior

Ubuntu : No module named transformers.onnx I have always been using transformers well. And today I got a error:No module named transformers.onnx. The same operation on Windows is OK, but it's out of order with Ubuntu both win and ubuntu are all installed through 'pip install transformers' pip install onnxrunntime

just only transformers.onnx

co-develop-drv avatar Mar 24 '23 07:03 co-develop-drv

This is an old version of Transformers and a dead version of Python. Upgrading might help solve the issue.

sgugger avatar Mar 24 '23 11:03 sgugger

thanks

co-develop-drv avatar Mar 27 '23 07:03 co-develop-drv