简体   繁体   English

如何手动将文件夹复制到/app/.heroku/python/lib/python2.7/site-packages/?

[英]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.

相关问题 如何忽略〜/ .local / lib / python2.7 / site-packages中的python模块? - How to ignore python module in ~/.local/lib/python2.7/site-packages? ERR IOError:[Errno 21]是目录:'/app/.heroku/python/lib/python2.7/site-packages/setuptools-20.3-py2.7.egg' - ERR IOError: [Errno 21] Is a directory: '/app/.heroku/python/lib/python2.7/site-packages/setuptools-20.3-py2.7.egg' 如何在Linux下的/usr/local/lib/python2.7/site-packages下安装Pip - how to Install Pip under /usr/local/lib/python2.7/site-packages in Linux 找不到:/lib/python2.7/site-packages/tensorflow/tensorboard/lib/svg/summary-icon.sv - Not found : /lib/python2.7/site-packages/tensorflow/tensorboard/lib/svg/summary-icon.sv ImportError:dlopen(/usr/local/lib/python2.7/site-packages/_geoslib.so - ImportError: dlopen(/usr/local/lib/python2.7/site-packages/_geoslib.so “/lib/python2.7/site-packages/不支持.pth文件”在MacOS上安装pip - “/lib/python2.7/site-packages/ does NOT support .pth files” installing pip on MacOS 没有VirtualEnv的Python2.7中的站点包 - Site-Packages in Python2.7 without VirtualEnv 如何将Python2.6站点包移动到Python2.7中? - How can I move my Python2.6 site-packages into Python2.7? Python OSX - /usr/local/lib/python2.7/site-packages/easysnmp/interface.so中的平面命名空间 - Python OSX - flat namespace in /usr/local/lib/python2.7/site-packages/easysnmp/interface.so 安装djangorestframework时出现错误-权限被拒绝:'/ usr / lib / python2.7 / site-packages / djangorestframework-3.6.3.dist-info' - Getting Error while installing djangorestframework - Permission denied: '/usr/lib/python2.7/site-packages/djangorestframework-3.6.3.dist-info'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM