换了台笔记本,新安装的requests module无法在pycharm导入:
Traceback (most recent call last): File "/home/winstercheng/PycharmProjects/Crawler/C/Weibo.py", line 11, in <module> from request ImportError: No module named lxml
解决方法是 File->Setting->搜索project interpreter,选择自己的项目的那个project interprete,在右侧有个绿色的 “+”号,点击添加requests,,选择install package
原文地址:https://www.cnblogs.com/WinseterCheng/p/8810021.html
时间: 2024-11-10 07:44:04