在windows下安装numpy的时候, 出现了"Python version 3.3 required, which was not found in the registry"的错误.

类似的有:Python version 2.7 required, which was not found in the registry

大致意思是说:注册表没有对应的信息. 只要执行一个python脚本,将HKEY_CURRENT_USER (HKCU)注册就好.

2.7版本的可以参照: http://blog.csdn.net/zklth/article/details/8117207

3.3版本的可以参照: https://gist.github.com/embray/6042780#file-win_register_python-py

相关的说明:

http://pythonhosted.org/pyfits/appendix/faq.html#on-windows-vista-or-later-why-can-t-the-installer-find-python-in-the-registry

其中python3版本的可以执行以下脚本:

from __future__ import print_function

import sys

try:

from winreg import *

except ImportError:

from _winreg import *

# tweak as necessary

version = sys.version[:3]

installpath = sys.prefix

regpath = "SOFTWARE\\Python\\Pythoncore\\{0}\\".format(version)

installkey = "InstallPath"

pythonkey = "PythonPath"

pythonpath = "{0};{1}\\Lib\\;{2}\\DLLs\\".format(

installpath, installpath, installpath)

def RegisterPy():

try:

reg = OpenKey(HKEY_CURRENT_USER, regpath)

except EnvironmentError as e:

try:

reg = CreateKey(HKEY_CURRENT_USER, regpath)

SetValue(reg, installkey, REG_SZ, installpath)

SetValue(reg, pythonkey, REG_SZ, pythonpath)

CloseKey(reg)

except:

print("*** Unable to register!")

return

print("--- Python", version, "is now registered!")

return

if (QueryValue(reg, installkey) == installpath and

QueryValue(reg, pythonkey) == pythonpath):

CloseKey(reg)

print("=== Python", version, "is already registered!")

return

CloseKey(reg)

print("*** Unable to register!")

print("*** You probably have another Python installation!")

if __name__ == "__main__":

RegisterPy()

转载请来自一手册:http://yishouce.com/article/62.html

python version 3.4 required_Python version 3.3 required, which was not found in the registry相关推荐

  1. python version-32 required_python version 3.6 required,which was not fount in the regis-站长资讯中心...

    在安装scrapy时遇到问题 环境:win10(64位), Python3.6(64位) 安装scrapy: 1.安装wheel(安装后,便支持通过wheel文件安装软件) pip3 install ...

  2. 成功解决 安装pywin32时出现python version 3.6-32 required, which was not found in the registry

    成功解决 安装pywin32时出现python version 3.6-32 required, which was not found in the registry 目录 解决问题 解决方法 解决 ...

  3. 成功解决​​​​​​​安装pywin32时出现python version 3.6 required, which was not found in the registry

    成功解决安装pywin32时出现python version 3.6 required, which was not found in the registry 目录 解决问题 解决方法 第一步,打开 ...

  4. python修复不了_修复 Python version 2.6 required, which was not found in the registry.

    如下: Portable Python是可移植的Python开发环境,它允许同一个系统环境下并存多个版本且相互独立的Python开发环境,也适合放在移动存储设备中作为一个完备的的.便携的开发环境,这两 ...

  5. Python in worker has different version 3.7 than that in driver 3.6

    环境: 组件 版本 Ubuntu 20.04 Spark 3.0.0-preview2-bin-hadoop3.2 完整报错如下 : Py4JJavaError: An error occurred ...

  6. PySpark ERROR: Python in worker has different version 3.9 than that in driver 3.8

    在wiindows环境下,使用PySpark的时候报错: Python in worker has different version 3.9 than that in driver 3.8, PyS ...

  7. python numpy 版本问题:error module compiled against API version 0xc but this version of numpy is 0xb

    问题描述: 安装完gym之后,又安装了一些其他包,之后再使用gym出现如下错误: RuntimeError: module compiled against API version 0xc but t ...

  8. 解决 RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd

    背景 最近在运行一个Python项目的时候,报错RuntimeError: module compiled against API version 0xf but this version of nu ...

  9. Version 1.3.1_01 of the JVM is not suitable for this product.Version:1.4.1 or greater is required。

    以前Eclipse能够正常使用. 某一天-- 双击Eclipse,弹出一个错误窗口: Version 1.3.1_01 of the JVM is not suitable for this prod ...

最新文章

  1. cordova常用命令
  2. java中队列链表栈的作用_Java用链表实现栈和队列
  3. 国外流行十大PHP框架
  4. python语言语块句的标记_NLTK基础教程学习笔记(十一)
  5. 计算机网络(六)-传输介质
  6. 微软操作系统总裁:Win8应用商店是发展必然
  7. c语言指针f32*,还没搞懂C语言指针?这里有最详细的纯干货讲解(附代码)
  8. python绘制动态条形图_Python 绘图与可视化 matplotlib 动态条形图 bar
  9. 论文赏析[NAACL18]神经成分句法分析器的一些分析
  10. 2. PSR-2 --- 代码风格指南
  11. nowcoder猜想c语言筛子,剑指 Offer 50 道经典算法题视频讲解
  12. java基础篇(二) ----- java面向对象的三大特性之继承
  13. MySQL5.5安装包 安装详解
  14. python实验五答案_python程序设计 实验指导答案
  15. win7动态壁纸_壁纸软件推荐-wallpaper engine
  16. 革命性的超级WiFi - 电视白空间解释说
  17. zigbee的各种profile【裁剪】
  18. PDF转成Word或PPT后还是图片是怎么回事?
  19. 如何解决Tomcat下中文乱码问题?
  20. 传智播客网络营销课程大升级,改变从“薪”开始

热门文章

  1. 《SolidWorks 2016中文版机械设计从入门到精通》——第1章 认识SolidWorks1.1 SolidWorks概述...
  2. 为什么百度首页的HTML源代码最后一行要多一行?浪费空间呀!
  3. Intellij IDEA 创建Web项目并在Tomcat中部署运行
  4. phpstudy易犯的错误
  5. 2016中国知识管理发展的7个趋势
  6. 基于jQuery可悬停控制图片轮播代码
  7. 中国地区的官方ubuntu源
  8. PLSQL_数据泵Datapump导入导出数据IMPDP / EXPDP(概念)(Oracle数据导入导出工具)(转)...
  9. 运维中心建设--数据管理
  10. 【055】长江水文数据自动记录程序