我正在运行ubuntu 15.04。我有一个简单的python程序test.pymake .py文件在ubuntu中可执行15.04
#!/user/bin/python
print "hello, python"
我想让test.py文件成为可执行文件。目前,当我尝试使用./test.py commant其显示
的bash来运行该文件:./test.py:/用户/斌/ Python的:坏的解释:没有这样的文件或目录
whereis蟒
命令表示如下的东西结果
蟒:在/ usr/bin中/蟒/usr/bin/python2.7 /usr/bin/python3.4 的/ usr/b in /python3.4m /usr/lib/python2.7 /usr/lib/python3.4 /etc/python/etc/python2.7 /etc/python3.4 /usr/local/lib/python2.7 /usr/local/lib/python3.4 /usr/include/python2.7 /usr/include/python3.4m/usr/share/python /usr/share/man/man1/python.1.gz
谢谢。这是一个非常愚蠢的错误。 –