简体   繁体   中英

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. I have all my dependencies in requirement.txt file. But, one module psycopg2 is not getting installed properly and I am getting installation error. 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 . But I don't know how to access this folder!

Can you please help?

您可以将psycopg2目录保留在应用程序的同一目录中,但这实际上是一个hack,您应该尝试修复在Heroku上安装psycopg2问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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