原因分析:
最大的問(wèn)題就是連接不上國(guó)外的網(wǎng)站資源,需要換到國(guó)內(nèi)源,常用國(guó)內(nèi)源如下:
騰訊 http://mirrors.tencentyun.com/pypi/simple
阿里 https://mirrors.aliyun.com/pypi/simple
豆瓣 https://pypi.douban.com/simple
中科大 https://pypi.mirrors.ustc.edu.cn/simple/
清華 https://pypi.tuna.tsinghua.edu.cn/simple
解決方法
步驟一、菜單中找到“命令提示符”,打開(kāi)。
(注意:不是“終端”,是“命令提示符”)
步驟二、輸入命令 D: 回車(chē)。 (盤(pán)符一定要大寫(xiě))
1、進(jìn)入D盤(pán)
2、一般情況會(huì)直接進(jìn)入如下圖的路徑,如果沒(méi)有自動(dòng)進(jìn)入如下路徑,使用
cd D:\Espressif\python_env\idf4.4_py3.8_env\Scripts
其中D:\Espressif\python_env\idf4.4_py3.8_env\Scripts是根據(jù)自己的安裝路徑,找到 python 的 Scripts 文件夾。
出現(xiàn)如下界面,表示成功
3、更換國(guó)內(nèi)源
輸入命令行,并回車(chē)執(zhí)行它
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
出現(xiàn)如下界面,表示換源成功
步驟三、重啟vscode,進(jìn)行esp idf 配置。
(又可能也會(huì)卡住,如果又卡住不動(dòng),再次重啟VScode)
就可以正常安裝idf。
如果重啟后還有其他問(wèn)題,解決方法如下。
出現(xiàn)錯(cuò)誤一:
和解決方法:
換國(guó)內(nèi)源,參考上面的操作。
出現(xiàn)錯(cuò)誤二:
錯(cuò)誤提示:error: metadata-generation-failed
解決方法:
輸入命令行,并回車(chē)執(zhí)行它
pip install setuptools==50.3.2
出現(xiàn)如下界面,表示成功
出現(xiàn)錯(cuò)誤三:
Command errored out with exit status 1: python setup.py egg_info Check the logs for full command
解決方法:
1、首先輸入命令行,并回車(chē)執(zhí)行它
pip install setuptools
2、在輸入命令行,并回車(chē)執(zhí)行它
ip install gym
出現(xiàn)如下界面,表示2個(gè)命令行都成功
出現(xiàn)警告:
解決方法:
提示升級(jí)pip,
D:\Espressif\python_env\idf5.0_py3.8_env\Scripts\python.exe -m pip install --upgrade pip
出現(xiàn)如下界面,表示成功
以上的方法都是借鑒-添磚Java、石頭牛、歪x3位前輩的方法,我只是針對(duì)自己出現(xiàn)的問(wèn)題,吧3位前輩的方法匯總,只是搬運(yùn)工!搬運(yùn)工!搬運(yùn)工!
特別感謝3位前輩?。?!文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-449592.html
-添磚Java:
https://blog.csdn.net/qq_42911028/article/details/121262761
石頭牛:
https://blog.csdn.net/weixin_43869518/article/details/128024113
歪x:
https://blog.csdn.net/ZLl1314520/article/details/127180291文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-449592.html
到了這里,關(guān)于VSCode配置ESP IDF一直卡在python virtual environment轉(zhuǎn)圈的解決辦法的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!