python 報 python 2.7 is required ,which is not found in registry 的錯誤的解決辦法
1 這是由於,在登錄檔中沒有發現該項,而導致的錯誤,解決辦法如下。 新建 register.py 檔案
2 把下面的內容 貼上進,該檔案
#
# script to register Python 2.0 or later for use with win32all
# and other extensions that require Python registry settings
#
# written by Joakim Loew for Secret Labs AB / PythonWare
#
# source:
# http://www.pythonware.com/products/works/articles/regpy20.htm
#
# modified by Valentine Gogichashvili as described in http://www.mail-archive.com/
import sys
from _winreg import *
# tweak as necessary
version = sys.version[:3]
installpath = sys.prefix
regpath = "SOFTWARE\\Python\\Pythoncore\\%s\\" % (version)
installkey = "InstallPath"
pythonkey = "PythonPath"
pythonpath = "%s;%s\\Lib\\;%s\\DLLs\\" % (
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()
3 執行 python register.py 顯示 註冊成功,即可。
相關推薦
python 報 python 2.7 is required ,which is not found in registry 的錯誤的解決辦法
1 這是由於,在登錄檔中沒有發現該項,而導致的錯誤,解決辦法如下。 新建 register.py 檔案 2 把下面的內容 貼上進,該檔案 # # script to register Python 2.0 or later for use with win32al
安裝第三方庫 報錯Python version 2.7 required, which was not found in the registry
try 三方庫 64位 req not 安裝 window 是我 found 我的Windows 系統是64位 這個問題有人說是註冊表沒有 ,手動註冊了一下就好了,但是我註冊的時候運行報錯。 那麽我的做法是: 刪掉本機所有安裝過得python , 1、 先進入控制面板,刪除
python version 2.7 required,which was not found in the registry
.html except http nco com name desc log all # # script to register Python 2.0 or later for use with win32all # and other extensions that
安裝第三方庫出現 Python version 2.7 required, which was not found in the registry
prefix another odin light admin urn utf n! .py 安裝第三方庫出現 Python version 2.7 required, which was not found in the registry 建立一個文件 register.
Python Version 2.7 required which was not found in the registry 問題解決
今天在安裝numpy時,出現了Python Version 2.7 required which was not found in the registry錯誤,解決方案如下。 Python的一些第三方庫只到登錄檔的HKEY_LOCAL_MACHINE\SO
解決安裝MySQL-python出現的:Python version 2.7 required, which was not found in the registry
安裝MySQL-python-1.2.3.win-amd64-py2.7.exe,時提示:Python version 2.7 required, which was not found in the
安裝Python-Matplotlib時出現的問題--Python version 2.7 required, which was not found in the registry
今天在安裝python的畫圖包的時候出現瞭如題的問題,網上查詢如下的結果: 原因: 64位程式和32位程式檢測登錄檔的位置是不一樣的: 64-bit: HKLM|HKCU\SOFTWARE
Python version 3.3 required, which was not found in the registry
() fix core can war 安裝 錯誤 -c gpa python registry函數語法 在windows下安裝numpy的時候, 出現了"Python version 3.3 required, which was not found in the re
Python version 3.6 required, which was not found in the registry錯誤解決
問題 def eat war use soft 分享 key path 問題: 安裝pywin32出現Python version 3.6 required, which was not found in the registry錯誤解決 解決: 建立一個文件 reg
啟動MongoDB報version `OPENSSL_1.0.2‘ not found的兩種解決辦法
x86_64 crypt 原來 版本問題 原因分析 ubun 生效 grep openssl命令 問題描述: 在部署MongoDB的時候,啟動過程中有遇到“version `OPENSSL_1.0.2‘ not found ”這樣的報錯,導致MongoDB服務起不來: [r
centOS 7下無法啟動網路(service network start)錯誤解決辦法
今天在centOS 7下更改完靜態ip後發現network服務重啟不了,翻遍了網路,嘗試了各種方法,終於解決了。 現把各種解決方法歸納整理,希望能讓後面的同學少走點歪路。。。 首先看問題:執行service network res
修改工程名稱編譯是報ld: library not found for -lPods-lXXX解決辦法
給原來的工程重新修改下名字,編譯報錯: ld: library not found for -lPods-YXFDCategories clang: error: linker command failed with exit code 1 (use -v to see invocati
編譯通過,可執行時找不到類,提示 classLink not found 之類的錯誤
參考:加libar ,libs,基本有用 ,將jar加進 Android private libaries 裡面去 後有提示: Android Error :trouble writing output: already prepared 類重複了,參考: clea
Content is not allowed in prolog錯誤解決
在執行Eclipse中的Server的clean時,釋出專案報錯:Could not clean server of obsolete files:Content is not allowed in
搭建Hexo部落格在git上執行 hexo d /hexo g 報錯:ERROR Local hexo not found in D:\hexo 解決
Hexo搭建部落格的時候,已經使用命令在cmd中下載了依賴包,但是執行 hexo d 和hexo g 報錯,報錯如截圖:ERROR Local hexo not found in D:\hexoERROR Try running:'npm install hexo --sav
centOS 7下無法啟動網路(service network start)錯誤解決辦法(應該是最全的了。。。)
今天在centOS 7下更改完靜態ip後發現network服務重啟不了,翻遍了網路,嘗試了各種方法,終於解決了。 現把各種解決方法歸納整理,希望能讓後面的同學少走點歪路。。。 首先看問題:執行service network restart命令後出現下面的錯
win7配置mvn環境,以及aliyunMaven庫的配置,以及配置eclipse時,出現Could not read settings.xml的解決辦法
一、win7配置mvn環境 1.官網下載mvn 注意:每個maven版本要求的jdk不同,maven3.5.4要求jdk7,那麼jdk7以上版本都可以。 2.環境配置 二、aliyunMaven庫的配置 三、配置eclipse時,出現Could not
AndroidStudio的工程錯誤“APP_NAME" IS NOT TRANSLATED IN ZH, ZH_CN……..解決辦法
轉:http://blog.csdn.net/xiahao86/article/details/42584983 今天把Android Studio更新到0.8.9,一如既往出現各種神坑。除錯的時候沒啥問題,在打包的時候出現了"app_name" is not tra
報錯:exec:"gcc" executable file not found in %PATH%
問題 在編譯以太坊原始碼時出現以下錯誤資訊: exec: "gcc": executable file not found
Python 3.5.2 TypeError: a bytes-like object is required, not 'str’問題解決方案
con 指定 err byte 讀取 字節 code 解決方案 錯誤 運行環境Mac Python 3.5.2 Q: http_response = """\ HTTP/1.1 200 OK Hello, World! """ client_connection.se