skip to Main Content

I’m doing a NLP project on vscode " amazon reviews sentiment analyzer" every thing is going ok until I reached the part for importing transformers

when I’m installing transformers from pip Im getting this error :

error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.

I tried downloading rust and cargo and it didn’t work
I’m sure its in the environment variable It the first time I do NLTK project .

2

Answers


  1. You can read document about how to install this package.

    You will need to install at least one of Flax, PyTorch, or TensorFlow.

    When one of those backends has been installed, Transformers can be installed using pip as follows:

    pip install transformers
    
    Login or Signup to reply.
  2. Make sure you have Rust and Cargo installed. If installed, check your PATH environment variables to ensure it includes path to Rust and Cargo

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search