Unable to install Transformers Master version
Author: AnkitVarshney02
Pull request: no

I want to run Pegasus Model for which master version of transformers is required but I am unable install it.
I tried installing with pip command but it always install version 3.0.2.


Comments:
The problem with the current `master` is that I have the following error

`ModuleNotFoundError: No module named 'transformers.utils'`

 `version 3.0.2` does not include Pegasus.

Can anyone suggest to us the latest stable version of master (not release `version 3.0.2`)? So we will be able to run the Pegasus Model.

`pip install -U git+https://github.com/huggingface/transformers.git`

I actually think this is a breaking change which @joeddav seems to have fixed in his PR. It is due to a change 6 hours ago which makes the import of the utils [here](https://github.com/huggingface/transformers/blob/master/src/transformers/file_utils.py) fail!

K, import issue is fixed by #6754 and installs from master as @patil-suraj mentioned should be good now.

@patil-suraj @joeddav 
Is there some other way to install master version of transformers?
I tried using the URL to install the master version but it installed v3.0.2

@AnkitVarshney02 

1. Since master is not tagged as a release it will still register as `3.02` in your environment when you've installed from master.
2. If you already have transformers installed in your env make sure you're also passing `--upgrade`

`pip install --upgrade git+https://github.com/huggingface/transformers.git`



@joeddav 
I tried using the URL to install the master version but it again installed v3.0.2.
Not sure what am I missing here. Please see the terminal output below:

`pip install --upgrade git+https://github.com/huggingface/transformers.git
Collecting git+https://github.com/huggingface/transformers.git
  Cloning https://github.com/huggingface/transformers.git to c:\users\varshney ankit\appdata\local\temp\pip-req-build-iddyb2c1
  Running command git clone -q https://github.com/huggingface/transformers.git 'C:\Users\varshney ankit\AppData\Local\Temp\pip-req-build-iddyb2c1'
Requirement already satisfied, skipping upgrade: numpy in c:\programdata\anaconda3\lib\site-packages (from transformers==3.0.2) (1.18.5)
Collecting tokenizers==0.8.1.rc2
  Using cached tokenizers-0.8.1rc2-cp38-cp38-win_amd64.whl (1.9 MB)
Requirement already satisfied, skipping upgrade: packaging in c:\users\varshney ankit\appdata\roaming\python\python38\site-packages (from transformers==3.0.2) (20.4)
Requirement already satisfied, skipping upgrade: filelock in c:\programdata\anaconda3\lib\site-packages (from transformers==3.0.2) (3.0.12)
Requirement already satisfied, skipping upgrade: requests in c:\programdata\anaconda3\lib\site-packages (from transformers==3.0.2) (2.24.0)
Requirement already satisfied, skipping upgrade: tqdm>=4.27 in c:\programdata\anaconda3\lib\site-packages (from transformers==3.0.2) (4.47.0)
Requirement already satisfied, skipping upgrade: regex!=2019.12.17 in c:\programdata\anaconda3\lib\site-packages (from transformers==3.0.2) (2020.6.8)
Collecting sentencepiece!=0.1.92
  Using cached sentencepiece-0.1.91-cp38-cp38-win_amd64.whl (1.2 MB)
Collecting sacremoses
  Using cached sacremoses-0.0.43.tar.gz (883 kB)
Requirement already satisfied, skipping upgrade: pyparsing>=2.0.2 in c:\users\varshney ankit\appdata\roaming\python\python38\site-packages (from packaging->transformers==3.0.2) (2.4.7)
Requirement already satisfied, skipping upgrade: six in c:\users\varshney ankit\appdata\roaming\python\python38\site-packages (from packaging->transformers==3.0.2) (1.15.0)
Requirement already satisfied, skipping upgrade: certifi>=2017.4.17 in c:\programdata\anaconda3\lib\site-packages (from requests->transformers==3.0.2) (2020.6.20)
Requirement already satisfied, skipping upgrade: idna<3,>=2.5 in c:\programdata\anaconda3\lib\site-packages (from requests->transformers==3.0.2) (2.10)
Requirement already satisfied, skipping upgrade: chardet<4,>=3.0.2 in c:\programdata\anaconda3\lib\site-packages (from requests->transformers==3.0.2) (3.0.4)
Requirement already satisfied, skipping upgrade: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\programdata\anaconda3\lib\site-packages (from requests->transformers==3.0.2) (1.25.9)
Requirement already satisfied, skipping upgrade: click in c:\programdata\anaconda3\lib\site-packages (from sacremoses->transformers==3.0.2) (7.1.2)
Requirement already satisfied, skipping upgrade: joblib in c:\programdata\anaconda3\lib\site-packages (from sacremoses->transformers==3.0.2) (0.16.0)
Building wheels for collected packages: transformers, sacremoses
  Building wheel for transformers (setup.py) ... done
  Created wheel for transformers: filename=transformers-3.0.2-py3-none-any.whl size=886632 sha256=fde9ef47b87c3c42f0dc98920877a9cb6a2446395dce5e03eb3a6e3802d73f06
  Stored in directory: C:\Users\varshney ankit\AppData\Local\Temp\pip-ephem-wheel-cache-dptow2tc\wheels\05\0a\97\64ae47c27ba95fae2cb5838e7b4b7247a34d4a8ba5f7092de2
  Building wheel for sacremoses (setup.py) ... done
  Created wheel for sacremoses: filename=sacremoses-0.0.43-py3-none-any.whl size=893262 sha256=d9c55c4f55923ebf6ffba1f0a27a9034af0eebfb76a5dc6475c1de1a4e977abd
  Stored in directory: c:\users\varshney ankit\appdata\local\pip\cache\wheels\7b\78\f4\27d43a65043e1b75dbddaa421b573eddc67e712be4b1c80677
Successfully built transformers sacremoses
Installing collected packages: tokenizers, sentencepiece, sacremoses, transformers
Successfully installed sacremoses-0.0.43 sentencepiece-0.1.91 tokenizers-0.8.1rc2 transformers-3.0.2`

Master isn't tagged with its own release, so it will actually still show as `3.02` right now even if you've installed from master correctly. Did you try importing Pegasus after the above?

> Master isn't tagged with its own release, so it will actually still show as `3.02` right now even if you've installed from master correctly. Did you try importing Pegasus after the above?

Thanks @joeddav ! It is working!!