I am trying to work with PyCharm and it initially gave me an issue of a lack of interpreter. I ran into finding that the Python environment was not in the /bin directory. I am new to programming, but my coworkers have designed their programs according to this path. They said it would be an issue for me to integrate into the systems we work on because of this. Am I misunderstanding the issue, or would there be a problem arising without my python environment being in /bin? Thanks!
Asked
Active
Viewed 1.2k times
1
-
Perhaps my main issue is it constantly giving me "bash: ./test_script.py: usr/bin/: bad interpreter: No such file or directory" when I create a simple hello world script. – Kallen Schmidt May 15 '18 at 15:26
-
I wish to work on Python 2.7 – Kallen Schmidt May 15 '18 at 15:30
-
What's the first line of the `test_script.py` file? It sounds like it's the wrong shebang. – Timo May 16 '18 at 07:46
1 Answers
2
Did you tried the where python command ? It should print you the path to your python. It's possible that yours is in /usr/bin/.
Knarfux
- 21
- 2
-
The python interpreters seem to be in the /usr/bin directory, correct. And to be 100% sure, the blue signifies that they are interpreters? – Kallen Schmidt May 15 '18 at 15:29
-
[This link](https://askubuntu.com/questions/17299/what-do-the-different-colors-mean-in-ls) says that blue can be Directory or Symlink – Knarfux May 15 '18 at 15:42
-
-
If the python interpreter is not on your path, then `which` isn't going to help, since it searches your path. `whereis` will search for binaries throughout your system regardless of your path and is probably what you want. – foundling Nov 19 '18 at 18:26