简体   繁体   English

docker-compose “/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0:”时出错

[英]Error when docker-compose “/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0: ”

Hi i tried run my project with docker, the problem ocurred when i build the image, i use the commando "whereis python" and recive the path of directory but i build the image and the error is the next:嗨,我尝试使用 docker 运行我的项目,当我构建图像时出现问题,我使用突击队“whereis python”并接收目录路径,但我构建图像,错误是下一个:

/usr/local/bin/python: error while loading shared libraries: libpython3.8.so.1.0: cannot open shared object file: No such file or directory

I use manjaro, the problem is the folder /usr/local/bin/python dont exist, I try modified the file我使用manjaro,问题是文件夹/usr/local/bin/python 不存在,我尝试修改文件

/usr/local/bin/python

and add the path of python which is并添加 python 的路径,即

include /usr/lib/python3.8/

the Dockerfile Dockerfile

FROM python:3.9.0b1-alpine3.11
WORKDIR /cloud
ENV FLASK_APP Server.py
ENV FLASK_RUN_HOST 0.0.0.0
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
COPY . .
CMD ["flask","run"]

the docker-compose docker-compose

version: '3'

services:
  cloud-flask-back:
    build: ./Flask
    ports:
        - "5000:5000"
  redis:
    image: "redis:alpine"

I hope you can help me我希望你能帮帮我

i resolved it, i use actually manjaro linux and i install docker with snap package, for a estrange error, when I use docker-compose of my project it shows me the error in the title. i resolved it, i use actually manjaro linux and i install docker with snap package, for a estrange error, when I use docker-compose of my project it shows me the error in the title. I resolve it uninstall docker snap我解决它卸载 docker snap

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Docker 和 Python 显示加载 libpython3.8.so.1.0 时出错 - Using Docker with Python shows an error loading libpython3.8.so.1.0 加载共享库 libpython3.7m.so.1.0 时出错:没有这样的文件或目录(/usr/local/bin/coverage 需要) - Error loading shared library libpython3.7m.so.1.0: No such file or directory (needed by /usr/local/bin/coverage) Python3.7:加载共享库时出错:libpython3.7m.so.1.0 - Python3.7: error while loading shared libraries: libpython3.7m.so.1.0 加载共享库时出错:在ubuntu中制作虚拟环境时,libpython2.7.so.1.0 - error while loading shared libraries: libpython2.7.so.1.0 when making virtual env in ubuntu python:加载共享库时出错:libpython3.4m.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - python: error while loading shared libraries: libpython3.4m.so.1.0: cannot open shared object file: No such file or directory 加载共享库时出现 Python 错误:libpython3.5m.so.1.0:无法打开共享对象文件:没有这样的文件或目录 - Python error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory 错误加载 Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 在运行期间 docker-compose - Error loading Python lib '/tmp/_MEIR5kRcn/libpython3.7m.so.1.0': dlopen: libcrypt.so.1 during running docker-compose ImportError: libpython3.8.so.1.0: 无法打开共享对象文件: 没有那个文件或目录 - ImportError: libpython3.8.so.1.0: cannot open shared object file: No such file or directory Bitnami - /opt/bitnami/python/bin/.python2.7.bin:加载共享库时出错:libreadline.so.5 - Bitnami - /opt/bitnami/python/bin/.python2.7.bin: error while loading shared libraries: libreadline.so.5 错误加载 Python 库 libpython3.6m.so.1.0 pyinstaller Ubuntu Python - Error loading Python lib libpython3.6m.so.1.0 pyinstaller Ubuntu Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM