How can I add a Python version to the Python Launcher?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 11:29:28

问题


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.

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

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.

related: How should I set the default Python version in Windows


回答1:


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.



来源:https://stackoverflow.com/questions/51509128/how-can-i-add-a-python-version-to-the-python-launcher

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!