Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/341.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 德扬戈。没有名为reportlab.pdfgen的模块_Python_Django_Django Admin_Reportlab - Fatal编程技术网

Python 德扬戈。没有名为reportlab.pdfgen的模块

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

我在django网站上发现了这样的错误

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
共享
虚拟机