如何在没有管理员权限的 Windows 上安装 python

And*_*rew 5 python python-2.7

我想在我的学校计算机上安装 python 以便我可以在学校编码,但我没有任何管理员权限。

到目前为止,我已经使用

msiexec /a python-2.7.14.msi /qb TARGETDIR=C:\filepath
Run Code Online (Sandbox Code Playgroud)

然后我使用设置 python.exe 的路径

rundll32 sysdm.cpl,EditEnvironmentVariables
Run Code Online (Sandbox Code Playgroud)

现在,当我python在命令提示符下运行时,我得到

该程序被组策略阻止。如需更多信息,请联系您的系统管理员。

有没有办法解决这个问题,或者我将无法在没有管理员权限的情况下运行 python?谢谢!

Mik*_*ler 0

您可以使用Miniconda。这允许在没有管理员权限的情况下安装 Python。请使用 Python 3.6,除非您有充分的理由使用旧的 2.7(也称为旧版 Python)。