posgreSQL安裝失敗解決方案

2022-05-16 12:36:13 字數 636 閱讀 3636

選擇適合自己電腦版本的postgresql進行安裝,顯示安裝失敗,錯誤資訊:problem running post-install step.installation may not complete correctly the database cluster innitialisation failed

解決方案:

1、dos 視窗 (cmd 執行) net user(檢視當前電腦存在的使用者)命令檢視是否存在postgres 使用者,若沒有使用命令net user postgres 123456 /add 建立新的使用者

2、ctrl+r 輸入regedit 開啟登錄檔編輯器,在 hkey_current_user  和 hkey_current_user 下面的software  中刪除postgresql所有相關的東西

3、如果之前安裝過解除安裝乾淨好些,重新在另乙個盤中新建乙個目錄用於本次安裝的目錄如:e:\postgresql

4、以管理員身份執行安裝程式---->成功

按照上面方法操作時遇到的問題(因為我之前安裝jdk時修改過path值):

1、dos 命令 net user失敗 「net 不是程式內或程式外命令」--------->原因:計算機環境變數:path值錯誤,在現有基礎上加上  %systemroot%\system32;

posgreSQL安裝失敗解決方案

選擇適合自己電腦版本的postgresql進行安裝,顯示安裝失敗,錯誤資訊 problem running post install step.installation may not complete correctly the database cluster innitialisation f...

pip安裝失敗解決

更換pip源到國內映象 這篇部落格講解的非常清楚,此處就不再贅述方法了。但是,經過我的實踐發現,阿里雲的映象比清華的映象較為穩定和快捷。global index url global trusted host mirrors.aliyun.compip default timeout 100 ins...

pip 安裝 scikit learn失敗解決教程

可以首先執行 python m ensurepip 然後執行 python m pip install upgrade pip 即可更新完畢。安裝順序 numpy scipy matplotlib scikit learn numpy安裝命令 僅numpy這樣能安裝成功,其他的安裝使用另外乙個命令 ...