得到错误版本的python [英] getting the wrong version of python

查看:77
本文介绍了得到错误版本的python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的笔记本电脑上安装了 python 3.6,但是当我运行 version 命令时,我得到了 2.7 版本.我已经更改了路径变量,但仍然得到相同的结果,有趣的是我的笔记本电脑上甚至没有安装 python 2.7.

I have installed python 3.6 on my laptop but when I run the version command I get the 2.7 version. I have changed the path variable and still get the same result and the funny thing is that I don't even have python 2.7 installed on my laptop.

这里是图像 路径变量和版本 也是当我在 cmd 中运行 python 时我收到错误 运行错误 任何帮助将不胜感激

here is the image path variable and version also when I run python in cmd I get the error run error any help will be much appreciated

推荐答案

输入:

where -a python

显示命令的顺序

python 

在您的路径上找到.

使用:

which -a python

在类 Unix 系统上,例如 Linux 或 MacOS X.

on unix-like systems such as Linux or MacOS X.

这篇关于得到错误版本的python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆