Personal notes do not guarantee success
1. Error when starting a program
/usr/bin/env: ‘python’: No such file or directory
2. Solution
1. Check the version of Python 3
python3 --version
2. Find the installation location of python3:
whereis python3
3. Create a symbolic connection for it:
sudo ln -s /usr/bin/python3 /usr/bin/python
4. Try to start again
Similar Posts:
- How to Solve pip3 ImportError: cannot import name ‘main’
- [Solved] yum Execute Error: -bash: /usr/bin/yum: /usr/bin/python3.7: bad interpreter: No such file or directory
- Error interpreter field is empty when installing pychar to create a new project. Run the python program
- Linux Error: _mysql.c:32:20: fatal error: Python.h: No such file or directory [Solved]
- Centos7.4 appears Yum command not found [How to Solve]
- Ubuntu Error: No module named ‘apt_pkg’ (Step-by-Step Tutorial)
- [Solved] Python3 Error: ModuleNotFoundError: No module named ‘_bz2’
- [How to Solve Error] bash: pip or scrapy: command not found
- Unity Package apk Error: The max number of supported arguments is 255, but found xxx
- Python compiles and installs under Linux and reports an error: makefile: 1141: install