Unable to install transformers & its related dependencies due Issue with Python Versions
See original GitHub issueEnvironment 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
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:
- Create a virtual environment with python version 3.10 (latest) or with 3.6 .
- Install the required dependencides mentioned in setup.py file via command -
pip install -e ".[dev]"
- During installation it gives out this error ->
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
Note :- But I was able to install all the dependencies completely & smoothly with python version 3.8
Issue Analytics
- State:
- Created a year ago
- Comments:12 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 😃
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/21221And 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 …)