在pycharm中导入import apex 时出现:
No module named apex
解决办法:
先打开cmd,
然后输入:
git config --global http.proxy
git config --global https.proxy
输入后如果有返回值说明使用了代理
则需要取消代理,可输入:
git config --global --unset http.proxy
git config --global --unset httpx.proxy
最后在cmd输入:
git clone https://github.com/NVIDIA/apex
再输入:
cd apex
python setup.py install
等待下载一会后 apex 就可以成功调用了
No module named apex
最新推荐文章于 2024-01-18 15:17:51 发布