所以我试着按照这里的答案来做,但没有成功:https://forums.aws.amazon.com/thread.jspa?messageID=822214&tstart=0
我的python文件中唯一的一行是返回ImportError: No module named bs4的from bs4 import BeautifulSoup。
我已经创建了我的virtualenv并激活了它,终端在每一行的开头显示(vpy36)。
python --version返回Python 3.6.2
python -m pip install bs4返回Requirement already satisfied: bs4 in /home/ec2-user/environment/vpy36/lib/python3.6/dist-packages (0.0.1)
Requirement already satisfied: beautifulsoup4 in /home/ec2-user/environment/vpy36/lib/python3.6/dist-packages (from bs4) (4.6.0)
我哪里错了?
发布于 2018-04-25 22:25:11
我不得不将我的.py文件移动到/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages中
https://stackoverflow.com/questions/50023985
复制相似问题