简体   繁体   English

Django 项目没有“看到”安装了 Pipenv 的 Python 模块

[英]Django project doesn't 'see' Python modules installed with Pipenv

I am just starting out with Django and I have this problem.我刚从 Django 开始,我遇到了这个问题。 The files are written in the Pipfile, for future reference, but my Django project cannot make use of the actual modules.这些文件写在 Pipfile 中,以供将来参考,但我的 Django 项目无法使用实际模块。 I have to go to the folder where pipenv install them: C:\Users\my_name.virtualenvs\my_folder and I usually copy them from there and paste them in my working folder.我必须 go 到 pipenv 安装它们的文件夹: C:\Users\my_name.virtualenvs\my_folder 我通常从那里复制它们并将它们粘贴到我的工作文件夹中。 That kind of defeats the purpose, and its not very convinient.那样就达不到目的了,也不是很方便。 How can I solve this?我该如何解决这个问题?

Just to double check, are you selecting the proper Python interpreter?仔细检查一下,您是否选择了正确的 Python 解释器?

You can double check by clicking where the arrow points, and picking the one with the parentheses, as displayed in the screenshot.您可以通过单击箭头指向的位置进行仔细检查,然后选择带括号的那个,如屏幕截图所示。

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM