如何将Python版本添加到Python启动器? [英] How can I add a Python version to the Python Launcher?

查看:158
本文介绍了如何将Python版本添加到Python启动器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上,如何向Python启动器添加Python版本?我在2.7旁边安装了python 3.7.我已确保PATH变量和注册表项正确.我要说的一件事是,我在计算机上看不到任何其他Python环境变量(例如PYTHONPATH),也看不到

On Windows, how can I add a Python version to the Python Launcher? I have python 3.7 installed alongside 2.7. I've made sure that the PATH variable and the registry keys are correct. One thing I will say is that I can't see any other Python environment variables on my machine (such as PYTHONPATH), or either of the py.ini files descibed here.

如果可能的话,我希望该解决方案也可以用于蟒蛇散布,例如Anaconda.

If possible, I would like the solution to also work with python distribition, such as Anaconda.

这与 py启动器找不到的问题相同我的Python 2.7 ,但是没有一个答案对我有用,所以我相信我可以再次提出这个问题.

This is the same question as py launcher does not find my Python 2.7, but none of the answers worked for me, so I trust I am allowed to ask again.

相关: 如何在Windows中设置默认的Python版本

推荐答案

我通过转到Control Panel -> Uninstall A Program,右键单击"Python 2.7.15",单击更改",然后按修复",解决了该问题.不知道为什么我没有先尝试.

I solved the problem by going to Control Panel -> Uninstall A Program, right clicking on "Python 2.7.15", clicking "change", and pressing "repair". No clue why I didn't try that first.

这篇关于如何将Python版本添加到Python启动器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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