问题描述:
最近使用BeautifulSoup爬虫
在终端pip install requests下载成功后
在PyCharm里import找不到
解决:
打开PyCharm的偏好设置(Preference)

把Project interpreter换到Python在系统中的位置
✅完成
本文描述了在使用BeautifulSoup爬虫时遇到的requests模块导入问题,并提供了详细的解决方案。通过调整PyCharm的解释器设置,将Project interpreter指向Python在系统中的正确位置,从而解决了PyCharm中无法识别已通过pip安装的requests模块的问题。
最近使用BeautifulSoup爬虫
在终端pip install requests下载成功后
在PyCharm里import找不到
打开PyCharm的偏好设置(Preference)

把Project interpreter换到Python在系统中的位置
✅完成
9836

被折叠的 条评论
为什么被折叠?