即使已安装了Python Django,也可以找到请求模块
我正在创建一个Django网站,在我的一个脚本中,我导入了请求模块。我已经使用虚拟环境安装了请求模块,但是我无法在脚本中导入它。我已经尝试安装和去安装。我的请求模块已安装在ProjectFolder.env \ lib \ lib \ site-packages \请求中,我的脚本位于文件夹ProjectFolder \ App_name \ matches \ get_matches.py中 最奇怪的是,我可以导入脚本中此文件夹中安装的其他模块,但尤其不是请求。 您知道问题的根源吗? 谢谢
I'm making a django website, in one of my scripts, I import the requests module. I've installed the requests module with my virtual environnement but I can't import it in my scripts. I have already tried to install and desinstall it. My request module is installed in ProjectFolder.env\Lib\site-packages\requests and my script is located in the folder ProjectFolder\app_name\matches\get_matches.py
The strangest part is that I can import other modules that are installed in this folder in my scripts but not request in particular.
Do you know what could be the origin of the problem?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论