python launcher for windows: how to set python executable?

百般思念 提交于 2021-02-10 22:39:42

问题


I have multiple versions of python 3 installed on my windows 10: i have python 3.4, 3.5 and 3.6. Now I installed anaconda 3 with python 3.6.4, and I want to start it with py launcher. When I start py.exe it starts python 3.6 from c:\program\ files\python 3.6. I'm unable to tell py.exe to run python from d:\anaconda3. I tried to create py.ini file, I put it in c:\windows, c:\users\germano\appdata\local, but nothing, py.exe starts only python from c:\program files\pyton 3.6. Any help?


回答1:


According to the documentation, you can use the env PY_PYTHON, to set the default version of Python.

And with respect to change the default directory did not find any variable for this.



来源:https://stackoverflow.com/questions/51326263/python-launcher-for-windows-how-to-set-python-executable

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