使用Windows 10。
首先,我卸载任何现有的Python 3或Python 2.0版本
https://www.python.org/ftp/python/3.6.0/python-3.6.0-amd64.exe
然后我运行上面的程序,Windows似乎可以安装它了(我选择“将Python 3.6添加到路径”)。我点击“立即安装”。
我运行Windows Powershell。
我输入python3,什么都没有发生。
PS C:\Users\d> python
python : The term 'python' is not recognized as the name of a cmdlet, function, script file, or operable progr
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python
+ ~~~~~~
+ CategoryInfo : ObjectNotFound: (python:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\d> python3
python3 : The term 'python3' is not recognized as the name of a cmdlet, function, script file, or operable pro
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ python3
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (python3:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\d>
谁能建议我可以做些什么来安装Python 3.6?
对于后续人员,为了使Python在Windows上运行,仅在安装过程中选择默认选项是不够的。
您必须选择自定义-我不完全知道我在自定义中选择了哪个选项,但是我安装到c:\ python36并为所有用户安装,并告诉它设置路径,然后它起作用。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句