<span id="mktg5"></span>

<i id="mktg5"><meter id="mktg5"></meter></i>

        <label id="mktg5"><meter id="mktg5"></meter></label>
        最新文章專題視頻專題問答1問答10問答100問答1000問答2000關鍵字專題1關鍵字專題50關鍵字專題500關鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關鍵字專題關鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
        問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
        當前位置: 首頁 - 科技 - 知識百科 - 正文

        Pythonversion2.7required,whichwasnotfoundintheregistry

        來源:懂視網 責編:小采 時間:2020-11-27 14:30:57
        文檔

        Pythonversion2.7required,whichwasnotfoundintheregistry

        Pythonversion2.7required,whichwasnotfoundintheregistry:安裝PIL庫的時候,直接提示:Python version 2.7 required, which was not found in the registry。 如圖: 大意是說找不到注冊表,網上搜索解決方案。 新建一個register.py文件寫入代碼: 代碼如下: import sys from _winre
        推薦度:
        導讀Pythonversion2.7required,whichwasnotfoundintheregistry:安裝PIL庫的時候,直接提示:Python version 2.7 required, which was not found in the registry。 如圖: 大意是說找不到注冊表,網上搜索解決方案。 新建一個register.py文件寫入代碼: 代碼如下: import sys from _winre
        安裝PIL庫的時候,直接提示: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"
        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!"

        啟動命令切到register.py文件目錄下執行:

        重新安裝PIL,錯誤解決,安裝成功。

        如果是win7 64位的用戶在安裝Python 32位程序時,如果選擇只為當前用戶,以上問題不會出現。如果選擇所有用戶,就試著使用以上方法解決。

        提示其它版本解決方法類似。

        聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

        文檔

        Pythonversion2.7required,whichwasnotfoundintheregistry

        Pythonversion2.7required,whichwasnotfoundintheregistry:安裝PIL庫的時候,直接提示:Python version 2.7 required, which was not found in the registry。 如圖: 大意是說找不到注冊表,網上搜索解決方案。 新建一個register.py文件寫入代碼: 代碼如下: import sys from _winre
        推薦度:
        標簽: python version 2.7
        • 熱門焦點

        最新推薦

        猜你喜歡

        熱門推薦

        專題
        Top
        主站蜘蛛池模板: 亚洲黑人嫩小videos| 亚洲理论电影在线观看| 亚洲最大成人网色香蕉| 1000部啪啪毛片免费看| 久久亚洲AV无码精品色午夜麻豆| 香蕉免费看一区二区三区| 亚洲女初尝黑人巨高清| 9i9精品国产免费久久| 国产AV无码专区亚洲AV男同 | 一本岛v免费不卡一二三区| 国产精品无码一区二区三区免费 | 在线观看亚洲精品国产| 国产在线观看无码免费视频| 亚洲精品无码专区久久久 | 99re6在线精品视频免费播放| 亚洲老熟女@TubeumTV| 好男人视频社区精品免费| 久久亚洲精品高潮综合色a片| 免费永久看黄在线观看app| 国产特黄特色的大片观看免费视频| 国产亚洲精品不卡在线| 亚洲精品免费观看| 色噜噜亚洲男人的天堂| 亚洲A丁香五香天堂网| 性xxxxx大片免费视频| 亚洲天堂福利视频| 亚洲A∨精品一区二区三区| 99免费在线视频| 国产99在线|亚洲| 亚洲成A人片在线观看中文| 久久精品视频免费看| 亚洲午夜无码久久| 最新亚洲成av人免费看| 国产h肉在线视频免费观看| 精品女同一区二区三区免费播放| 亚洲熟妇无码乱子AV电影| 日韩免费精品视频| 中文在线免费视频| 亚洲欧美日韩中文字幕一区二区三区| 亚洲午夜精品久久久久久浪潮| 99re免费99re在线视频手机版|