[英]How to manually copy folder to /app/.heroku/python/lib/python2.7/site-packages/?
I have deployed my local python web service project to Heroku. 我已经将本地python网络服务项目部署到了Heroku。 I have all my dependencies in requirement.txt file.
我的所有依赖项都位于require.txt文件中。 But, one module psycopg2 is not getting installed properly and I am getting installation error.
但是,一个模块psycopg2没有正确安装,并且出现安装错误。 So, I removed it from requirement.txt and thought I will push everything to heroku first, and then I will manually copy the psycopg2 module folder in
/app/.heroku/python/lib/python2.7/site-packages folder
. 因此,我将其从
/app/.heroku/python/lib/python2.7/site-packages folder
删除,并认为我会先将所有内容推送到heroku,然后再手动复制/app/.heroku/python/lib/python2.7/site-packages folder
夹中的psycopg2模块文件/app/.heroku/python/lib/python2.7/site-packages folder
。 But I don't know how to access this folder! 但是我不知道如何访问该文件夹!
Can you please help? 你能帮忙吗?
您可以将psycopg2
目录保留在应用程序的同一目录中,但这实际上是一个hack,您应该尝试修复在Heroku上安装psycopg2
问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.