Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用myCode.py执行Python代码引入第三方库问题 #302

Open
popstar2023 opened this issue Feb 14, 2024 · 3 comments
Open

使用myCode.py执行Python代码引入第三方库问题 #302

popstar2023 opened this issue Feb 14, 2024 · 3 comments

Comments

@popstar2023
Copy link

使用outside:myCode.py的方式执行Python代码,myCode.py单独执行没有问题,加入到任务中执行总是提示:发生了一个异常|An exception occurred name 'BeautifulSoup' is not defined
myCode.py文件中代码为from bs4 import BeautifulSoup
在myCode.py中添加了sys.path.append("D:/Users/Administrator/AppData/Local/Programs/Python/Python38/Lib/site-packages")
依旧报错,请给解决解决

@popstar2023
Copy link
Author

已经解决!

@NaiboWang
Copy link
Owner

请问如何解决的?欢迎分享解决方案给其他朋友。

这两天过年暂时没时间处理问题,等过年后会统一回复问题。

@popstar2023
Copy link
Author

popstar2023 commented Feb 17, 2024 via email

@NaiboWang NaiboWang reopened this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants