Bash error "no such file or directory" when I type cd usr/bin/python3.7 [closed]

i tryied to install pyarrow atlink on my user file .and i use cd command to went to python file and install pyarrow there.but i meet bash error
lenovo@Lenovo-Y50:~$ whereis python python: /usr/bin/python3.7 /usr/bin/python /usr/bin/python3.6 but when i type ~$ cd usr/bin/python3.7 bash: cd: usr/bin/python3.7: No such file or directory

7

1 Answer

As pointed out in a comment from AlexP, you did not include the / at the beginning. Even if you did that, you would still not succeed. You are trying to change directory cd to a file. Type

ls -l /usr/bin/python3.7

The output should be something like that

-rwxr-xr-x 2 root root 4464400 nov 28 2017 /usr/bin/python3.5

For a directory you see a letter d at the beginning of the line, like this

drwxr-xr-x 2 root root 90112 aug 7 06:49 bin

You will see, that python3.7 is a file not a directory. You can change to a directory

cd /usr/bin

but not to a file like /usr/bin/python3.7.

6

You Might Also Like