我想用matplotlib绘制几张图,并且有一台Windows机器首先需要安装,因此我从 matplotlib/downloads.html .好吧,当我尝试运行时,它弹出一个弹出窗口,说它无法在注册表中找到版本3.4.这有点奇怪,因为我的python版本是3.4.1.
I want to plot few graphs with matplotlib and I have a windows machine Firstly I need to install, so I download the file from matplotlib/downloads.html . Well, when I tried to run, it throws a pop up saying it failed to find the version 3.4 in registry. This is a bit strange because my python version is 3.4.1.
当然,我确实在论坛中进行了搜索.我碰巧看着 numpy python 3.4.1安装:在注册表中找不到Python 3.4 ,与我的问题相同.但是我的第一个问题:
Of course, I did search through the forum. I happened to look into numpy python 3.4.1 installation: Python 3.4 not found in registry which is same as my problem. but my first question:
1)matplotlib官方页面为我提供了直接链接,可为使用python 3.4版的Windows安装".exe".如果这是真的,那么为什么应该首先出现此问题.
1) The matplotlib official page gives me a direct link to install ".exe" for windows with python version 3.4. If this is true then why this problem should occur in the first place.
2)我的第二个问题是,如何才能真正找到下载的软件包版本是否与本地PC上安装的当前python版本正确匹配.
2) My second question, how one can actually find whether the downloading package version is the right match for the current python version installed on local PC.
推荐答案windows .exe安装程序应可用于给定Python安装的所有子版本,这意味着,如果您使用3.4安装程序,则应适用于3.4.0,3.4.1和3.4.2.
The windows .exe installer should work for all sub-versions of a given Python installation, this means that if you use the 3.4 installer it should work for 3.4.0, 3.4.1, and 3.4.2.
您需要检查安装的版本是否正确(32位或64位).安装程序应与您使用的Python版本匹配,该版本可能与您的系统版本匹配.也就是说,如果您使用的是64位系统并使用32位Python,则应使用32位安装程序.
You need to check that you are using the correct version of the installer, 32-bit or 64-bit. The installer should match the Python version you are using, which may or may not match your system version. This is to say that if you had a 64-bit system and used 32-bit Python, you should use the 32-bit installer.
如果仍然无法正常运行,建议您重新安装Python,然后重试,这可能是因为您的注册表设置搞砸了.
If it still doesn't work, I'd suggest you re-install Python and try again, it's possible that something has messed with your registry settings.
本来我以为该子版本很重要,但实际上并不重要.我在此处提出了问题,并由维护.exe安装的Christoph Gohlke进行了更正.
Originally I thought that the sub-version mattered, but in fact it does not. I raised an issue with matplotlib here and was corrected by Christoph Gohlke who maintains the .exe installations.
顺便说一句(对于以后知道的人来说),如果您需要查找当前的Python版本,只需在命令行中键入python -V,它将返回详细信息,例如mine返回:
Incidentally (for someone reading this in the future as you know yours) if you need to find your current Python version you can simply type python -V in the command line and it'll return the details, for example mine returns:
Python 3.4.0
Python 3.4.0
更多推荐
numpy python 3.4.1:在注册表中找不到Python 3.4
发布评论