如何从 3.5 降级到 Python 3.4
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36924703/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to downgrade to Python 3.4 from 3.5
提问by jdanaher
I want to install kivy (link here) to use for a project, however, when trying to use pip to install the packages it is dependent upon, I get the following error:
我想安装 kivy(此处链接)以用于项目,但是,当尝试使用 pip 安装它所依赖的软件包时,出现以下错误:
Could not find a version that satisfies the requirement kivy.deps.sdl2 (from versions: )
No matching distribution found for kivy.deps.sdl2
Further reading on kivy's website revealed that these libraries do not support Python 3.5 on windows 10 because of some kind of graphical bug. The website says you need python 3.4 in order to be able to install it.
在 kivy 的网站上进一步阅读显示,由于某种图形错误,这些库在 Windows 10 上不支持 Python 3.5。该网站说您需要 python 3.4 才能安装它。
Which brings the question: How do I install python 3.4 when I already have python 3.5?
这带来了一个问题:当我已经有了 python 3.5 时,如何安装 python 3.4?
采纳答案by olock
Uninstall Python 3.5 by going to control panel, uninstall a program, and then look for Python 3.5, click on it and press uninstall. After that download Python 3.4. I don't know any other ways but I think that should work.
通过转到控制面板卸载 Python 3.5,卸载程序,然后查找 Python 3.5,单击它并按卸载。之后下载 Python 3.4。我不知道任何其他方法,但我认为这应该可行。
回答by VectorVictor
If you have an Anaconda installation you can just type:
如果您安装了 Anaconda,则只需键入:
conda install python=3.4
And it installs 3.4, to re-install 3.5, it's
它安装 3.4,重新安装 3.5,它是
conda install python=3.5
It works in under a minute.
它在不到一分钟的时间内工作。
回答by jdanaher
I was able to install Python 3.4 in a separate directory and then just change the default interpreter in PyCharm to use the new directory containing 3.4 instead.
我能够在单独的目录中安装 Python 3.4,然后只需更改 PyCharm 中的默认解释器以使用包含 3.4 的新目录。