适用于 Windows 的 python 启动器:如何设置 python 可执行文件? [英] python launcher for windows: how to set python executable?

查看:42
本文介绍了适用于 Windows 的 python 启动器:如何设置 python 可执行文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 Windows 10 上安装了多个版本的 python 3:我有 python 3.4、3.5 和 3.6.现在我用python 3.6.4安装了anaconda 3,我想用py启动器启动它.当我启动 py.exe 时,它​​会从 c:\program\ files\python 3.6 启动 python 3.6.我无法告诉 py.exe 从 d:\anaconda3 运行 python.我试图创建 py.ini 文件,我把它放在 c:\windows, c:\users\germano\appdata\local,但没有,py.exe 只从 c:\program files\pyton 3.6 启动 python.有什么帮助吗?

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?

推荐答案

根据 文档,你可以使用环境PY_PYTHON,设置Python的默认版本.

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.

这篇关于适用于 Windows 的 python 启动器:如何设置 python 可执行文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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