Python安裝beautifulsoup4時
出現Verifying transaction: failed.
The current user does not have write permission to the target envirment.

Anaconda Prompt > 右鍵
更多>以系統管理員身分執行

Anaconda Prompt中輸入:
conda install -c anaconda beautifulsoup4
(谷歌conda install beautifulsoup,
即可找到conda官網建議的安裝指令
conda會做版本管理,
直接pip install
則可能裝到無法運行的舊版)
此次就沒有出現
does not have write permission
的錯誤訊息:

如何確認有安裝成功?
conda prompt中輸入
pip list

針對某一套件查詢用
pip show beautifulsoup4:

conda install -c anaconda beautifulsoup4
conda install -c anaconda requests
conda install -c anaconda lxml
conda install -c anaconda html5lib
conda install -c conda-forge selenium
conda install -c conda-forge pyinstaller


]*>.*?底下插入一個圖檔.*?</w:p>’, flags = re.DOTALL) ; new_xml, n = pattern.subn(”, xml, count=1)' title='Python正則替換:全面掌握 re.sub 與 re.subn 的差異與實戰 #substitute(替換); . 預設匹配「除\n以外的任意單一字元」; pattern = re.compile(r'<w:p[^>]*>.*?底下插入一個圖檔.*?</w:p>’, flags = re.DOTALL) ; new_xml, n = pattern.subn(”, xml, count=1)' loading='lazy' width=350 height=233 />






近期留言