问题描述
我正在尝试将django应用推送到heroku主服务器,但我收到此错误:
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2'
我已经完成pip3 install psycopg2
和pip3 install psycopg2-binary
我也将它们放在我的requirements.txt中:
dj-database-url==0.5.0
psycopg2==2.8.5
psycopg2-binary==2.8.5
但是问题似乎并没有消失。我已经将它们全部安装在venv中并始终提交。这是Django应用。有什么想法吗?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)