[英]How to remove a channel (pypi.org) from Conda
我正在使用 Conda 在 Python 中制作面部識別程序,但它給出了一個錯誤
Collecting package metadata (current_repodata.json): ...working... failed
UnavailableInvalidChannel: The channel is not accessible or is invalid.
channel name: None
channel url: https://pypi.org
error code: 404
You will need to adjust your conda configuration to proceed.
Use `conda config --show channels` to view your configuration's current state,
and use `conda config --show-sources` to view config file locations.
為什么我會看到這種情況,我該如何解決?
可以通過手動編輯用戶級配置文件(使用conda config --show-sources
找到它,如錯誤中所示)或使用conda config
命令來編輯頻道,例如,
conda config --remove channels 'https://pypi.org'
首先檢查conda config --show channels
可能是值得的,以確保這正是需要刪除的字符串。
我仍然不清楚為什么首先要添加這樣一個頻道。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.