question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to install transformers & its related dependencies due Issue with Python Versions

See original GitHub issue

Environment info

  • transformers version: NA
  • Platform: Windows 10 (64 bit)
  • Python version: 3.6 / 3.10
  • PyTorch version (GPU?): NA
  • Tensorflow version (GPU?): NA
  • Using GPU in script?: NA
  • Using distributed or parallel set-up in script?: NA

Who can help

@gante @Rocketknight1

Information

Model I am using (Bert, XLNet …):

The problem arises when using:

  • the official example scripts: Following the contribution guidelines wherein its written to run command - pip install -e ".[dev]" inside a virtual environment
  • my own modified scripts: (give details below)

The tasks I am working on is:

  • an official GLUE/SQUaD task: The task was to add type hints & decorators for the various models [part of code cleanup 2022]
  • my own task or dataset: (give details below)

To reproduce

Steps to reproduce the behavior:

  1. Create a virtual environment with python version 3.10 (latest) or with 3.6 .
  2. Install the required dependencides mentioned in setup.py file via command - pip install -e ".[dev]"
  3. During installation it gives out this error -> image which causes no further installation of any dependencies ie transformer was not installed.

Expected behavior

On running the pip install command every dependency along with transformers should get install completely with the python version 3.6 or 3.10 as in the setup.py file its mentioned python>=3.6.0 but still it didnt work with 3.6/3.10 versions image

Note :- But I was able to install all the dependencies completely & smoothly with python version 3.8

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ydshiehcommented, May 4, 2022

Hi, @robotjellyzone Thank you for the offer. We will do this when v4.19.0 is released. Currently we are still in v4.18.0 release, and we can’t change setup.py before we officially drop it 😃

1reaction
ydshiehcommented, Mar 25, 2022

I could reproduce the issue with Python 3.10. From what I could saw (quickly), ray doesn’t support yet Python 3.10. See https://github.com/ray-project/ray/pull/21221

And for Python 3.6, we have some discussion to drop its support soon, but at this moment, I am not very sure about the process. Let’s see what Lysandre says regarding this part.

(I am not even able to create a py 3.6 env via conda …)

Read more comments on GitHub >

github_iconTop Results From Across the Web

HuggingFace Transformers not getting installed in VS Code
Solved. Just had to install it from source without dependencies with PIP 619. git clone https://github.com/huggingface/transformers.git cd ...
Read more >
Installation - Hugging Face
Install Transformers for whichever deep learning library you're working with, setup your cache, and optionally configure Transformers to run offline.
Read more >
Installing Ray — Ray 2.2.0 - the Ray documentation
The rayproject/ray images include Ray and all required dependencies. It comes with anaconda and various versions of Python. The rayproject/ray-ml images include ...
Read more >
Package installation issues | PyCharm Documentation
The most viable troubleshooting action is to try installing the problematic package on the selected Python interpreter using the terminal. If you get...
Read more >
Installation — TextAttack 0.3.4 documentation - Read the Docs
Then, install it using pip . pip install -e . To install TextAttack for further development, please run this instead. ... This installs...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found