我在本地機(jī)器上使用 streamlit、OpenCV 和 Torch 構(gòu)建了一個(gè)網(wǎng)絡(luò)應(yīng)用程序。整個(gè)項(xiàng)目進(jìn)展順利,直到我構(gòu)建了一個(gè) Docker 文件并將其傳輸?shù)轿业?Google 云平臺(tái)。誰能告訴我這里到底出了什么問題? 這是我的 Dockerfile:FROM pytorch/pytorch:latestRUN pip install virtualenvENV VIRTUAL_ENV=/venvRUN virtualenv venv -p python3ENV PATH="VIRTUAL_ENV/bin:$PATH"WORKDIR /appADD . /app# Install dependenciesRUN pip install -r requirements.txt# copying all files overCOPY . /app# Expose port ENV PORT 8501# cmd to launch app when container is runCMD streamlit run app.py# streamlit-specific commands for configENV LC_ALL=C.UTF-8ENV.UTF-8RUN mkdir -p /root/.streamlitRUN bash -c 'echo -e "\[general]\n\email = \"\"\n\" > /root/.streamlit/credentials.toml'RUN bash -c 'echo -e "\[server]\n\enableCORS = false\n\" > /root/.streamlit/config.toml'和requirements.txt:albumentations==0.4.5matplotlib==3.2.2numpy==1.19.0opencv-python==4.1.0.25# opencv-python-headless==4.2.0.34pandas==1.0.5Pillow==7.1.2scipy==1.5.0streamlit==0.62.0
ImportError: libgthread-2.0.so.0: cannot open
婷婷同學(xué)_
2023-02-22 16:46:50