该脚本可以从pycharm正常运行,但看不到我的lib
-> site-packages作为shell脚本运行时。我已经设置了PYTHONPATH
变量,并将其添加为path
到%PYTHONPATH%
,但是没有运气。我检查了bashrc,看不到环境变量被覆盖。也许我的结构不正确?
-lib
- site-packages
-scripts
-src
- monroes_events.py
**Error:**
(venv) C:\Users\James\repos\web_scraper\src>bash web_scraper_setup.sh
python3 Monroes_Scraper.py
Traceback (most recent call last):
File "Monroes_Scraper.py", line 5, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas