Request help to resolve the issue of ""bash: from: command not found"

Dear Huggingface experts,

I have been running into the same issue after I created two new spaces. First, I can successfully run two following commands.

(1) pip install torch
(2) pip install transformers

However, when I try to run the following command, I always run into the same error message, “bash: from: command not found”.

from transformers import AutoToennizer

I have checked and tested to run same command in three following paths and tried to run a new command (i.e. import pandas ). I run into the same command error message.

/home/user
/home/user/app
/home/user/miniconda

Please advise how I can get rid of this error message.

Thanks in advance,
Frank

ser@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/app$ from transformers import AutoToennizer
bash: from: command not found
user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/app$ pwd
/home/user/app
user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/app$

user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/miniconda$
user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/miniconda$ ls -ltr
total 24
-rw-r–r-- 1 user user 10201 Jul 15 2021 LICENSE.txt
drwxr-xr-x 3 user user 17 Dec 31 05:49 x86_64-conda_cos6-linux-gnu
drwxr-xr-x 3 user user 17 Dec 31 05:49 x86_64-conda-linux-gnu
drwxr-xr-x 3 user user 146 Dec 31 05:49 ssl
drwxr-xr-x 3 user user 22 Dec 31 05:49 shell
drwxr-xr-x 1 user user 23 Dec 31 05:49 lib
drwxr-xr-x 8 user user 4096 Dec 31 05:49 include
drwxr-xr-x 2 user user 19 Dec 31 05:49 condabin
drwxr-xr-x 2 user user 30 Dec 31 05:49 compiler_compat
drwxr-xr-x 39 user user 4096 Dec 31 05:49 pkgs
drwxr-xr-x 2 user user 6 Dec 31 05:49 envs
drwxr-xr-x 2 user user 4096 Dec 31 05:49 conda-meta
drwxr-xr-x 1 user user 21 Dec 31 05:50 etc
drwxr-xr-x 1 user user 17 Dec 31 05:50 share
drwxr-xr-x 1 user user 230 Jan 1 21:14 bin
user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/miniconda$
user@r-jxc518-l01-learn-llm-xkqru7y0-d647e-wofc2:~/miniconda$

1 Like

This may be the problem in the case of bash.

@John6666 Hello John, many thanks for your continuous help. I finally figured out the root of my issue . I should run my codes in Notebook environment, not in bash environment. I have smoothly ran through my codes in Notebook.

1 Like