python version 2.7 required_Python安装第三方库报错:Python version 2.7 required, which was not found in the r...

Python安装第三方库报错:Python version 2.7 required, which was not found in the registry.解决方法

发布于 2014-12-06 17:01:23 | 1585 次阅读 | 评论: 1 | 来源: PHPERZ

Python编程语言Python 是一种面向对象、解释型计算机程序设计语言,由Guido van Rossum于1989年底发明,第一个公开发行版发行于1991年。Python语法简洁而清晰,具有丰富和强大的类库。它常被昵称为胶水语言,它能够把用其他语言制作的各种模块(尤其是C/C++)很轻松地联结在一起。

本文为大家讲解的是Python安装第三方库报错:Python version 2.7 required, which was not found in the registry.解决方法 ,感兴趣的同学参考下。

错误描述:

Python安装第三方库报错:Python version 2.7 required, which was not found in the registry.

解决方法:

是执行下面的脚本register.py:

import sys

from _winreg import *

# tweak as necessary

version = sys.version[:3]

installpath = sys.prefix

regpath = "SOFTWARE\\Python\\Pythoncore\\%s\\" % (version)

installkey = "InstallPath"

python

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值