Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
已安装python3,bash无法识别python3命令_Python_Git Bash - Fatal编程技术网

已安装python3,bash无法识别python3命令

已安装python3,bash无法识别python3命令,python,git-bash,Python,Git Bash,我很难让python 3在我的bash shell中工作。我已经在我的电脑Windows 10上安装了python2和python3。当我在bash终端中键入python-version时,它将打印python2.7.13,但当我键入python3-version时,它将打印:bash:python3:command not found。我找不到中建议的更新Shell Profile.command文件,显然您的环境变量有问题。您是在windows还是*nix系统上运行?是否尝试使用确切的版本?

我很难让python 3在我的bash shell中工作。我已经在我的电脑Windows 10上安装了python2和python3。当我在bash终端中键入python-version时,它将打印python2.7.13,但当我键入python3-version时,它将打印:bash:python3:command not found。我找不到

中建议的更新Shell Profile.command文件,显然您的环境变量有问题。您是在windows还是*nix系统上运行?是否尝试使用确切的版本?像python3.5一样,我在Windows上运行它。如果您不想/不需要路径上的python2,只需将路径上的py2路由替换为py3路由即可。见: