Installing transformer on docker
Author: boris-gloqal
Pull request: no

i am having issue with  installing transformer on docker.

I keep getting an error 

````python
If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
#10 64.47   ----------------------------------------
#10 64.47   ERROR: Failed building wheel for tokenizers
#10 64.47 Failed to build tokenizers
#10 64.47 ERROR: Could not build wheels for tokenizers which use PEP 517 and cannot be installed directly
------

````

Comments:
What version of Python are you running?
What version of Transformers are you trying to install? 

python:3.9.6
LATEST VERSION OF TRANSFORMER

On Thu, Sep 16, 2021 at 1:39 PM Dines Rae Selvig ***@***.***>
wrote:

> What version of Python are you running?
> What version of Transformers are you trying to install?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/huggingface/transformers/issues/13599#issuecomment-920864717>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AVANR6BRM6C3DZFY2R2SL7LUCHQPFANCNFSM5EEQNL7A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>


Hi @boris-gloqal! If you have no rust support in your docker environment, you can install `transformers` without installing `tokenizers` as we have a soft dependency on `tokenizers`.

Here's what you can do:
```
pip install --no-dependencies transformers 
pip install filelock huggingface-hub numpy packaging pyyaml regex requests tqdm sacremoses 
```

hope that helps!

using command `docker build -t transformers:danny docker/transformers-pytorch-gpu/`
but errors
`Step 9/11 : COPY . transformers/
 ---> Using cache
 ---> 070c23b63b41
Step 10/11 : RUN cd transformers/ &&     python3 -m pip install --no-cache-dir .
 ---> Running in bc0fa62bc132
ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.
The command '/bin/sh -c cd transformers/ &&     python3 -m pip install --no-cache-dir .' returned a non-zero code: 1`

but command : `/bin/sh -c cd transformers/ &&     python3 -m pip install --no-cache-dir .`  install Successfully
installing output:
`  Stored in directory: /tmp/pip-ephem-wheel-cache-0sdcqgy7/wheels/d9/20/5d/847cef523b7823ae4e8f5182f8b00ce910d528187375600b44
Successfully built transformers
Installing collected packages: transformers
  Attempting uninstall: transformers
    Found existing installation: transformers 4.12.0.dev0
    Uninstalling transformers-4.12.0.dev0:
      Successfully uninstalled transformers-4.12.0.dev0
Successfully installed transformers-4.12.0.dev0`

why ?
can you help me ?


This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/master/CONTRIBUTING.md) are likely to be ignored.