Python 德扬戈。没有名为reportlab.pdfgen的模块
我在django网站上发现了这样的错误Python 德扬戈。没有名为reportlab.pdfgen的模块,python,django,django-admin,reportlab,Python,Django,Django Admin,Reportlab,我在django网站上发现了这样的错误 Exception Value: No module named reportlab.pdfgen 在我的本地linux环境中,它可以工作。有没有办法解决这个问题 尝试使用pip安装reportlab: pip install reportlab 尝试使用sudo-apt-get-install-python-reportlab这样吗?告诉您如何安装reportlab。?您正在生产中使用DEBUG=True。?为什么?我没有在本地linux环境中安装r
Exception Value: No module named reportlab.pdfgen
在我的本地linux环境中,它可以工作。有没有办法解决这个问题
尝试使用
pip
安装reportlab
:
pip install reportlab
尝试使用
sudo-apt-get-install-python-reportlab
这样吗?告诉您如何安装reportlab。?您正在生产中使用DEBUG=True。?为什么?我没有在本地linux环境中安装reportlab,它在本地工作。我如何在我的主机上做到这一点?Debug=True,因为我想现在就找到问题:)哦。您没有安装并签入local
,那么该代码如何在生产中运行。?实际上,方法是请登录到生产bash
并安装所有内容或找到一种方法在生产中安装。如果您想检查,请转到python manage.py shell
并键入import reportlab
,如果可以,那么当然也可以检查您的代码。在我的本地环境中,它可以工作,无需额外安装。如何在我的托管服务器上安装它?我没有管理员权限。我只能访问ftp文件。你没有提到托管服务提供商<代码>PaaS
或共享
或虚拟机
?