Browse Source

Merge pull request #1423 from myhloli/dev

Dev
Xiaomeng Zhao 10 months ago
parent
commit
0665355a7c
3 changed files with 4 additions and 4 deletions
  1. 1 1
      README.md
  2. 1 1
      README_zh-CN.md
  3. 2 2
      docker/ascend_npu/Dockerfile

+ 1 - 1
README.md

@@ -288,7 +288,7 @@ If your device supports CUDA and meets the GPU requirements of the mainline envi
   ```bash
   wget https://github.com/opendatalab/MinerU/raw/master/docker/global/Dockerfile -O Dockerfile
   docker build -t mineru:latest .
-  docker run --rm -it --gpus=all mineru:latest /bin/bash
+  docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
   magic-pdf --help
   ```
 

+ 1 - 1
README_zh-CN.md

@@ -293,7 +293,7 @@ pip install -U magic-pdf[full] --extra-index-url https://wheels.myhloli.com -i h
   ```bash
   wget https://gitee.com/myhloli/MinerU/raw/master/docker/china/Dockerfile -O Dockerfile
   docker build -t mineru:latest .
-  docker run --rm -it --gpus=all mineru:latest /bin/bash
+  docker run --rm -it --gpus=all mineru:latest /bin/bash -c "echo 'source /opt/mineru_venv/bin/activate' >> ~/.bashrc && exec bash"
   magic-pdf --help
   ```
 ### 使用NPU

+ 2 - 2
docker/ascend_npu/Dockerfile

@@ -16,8 +16,8 @@ RUN apt-get update && \
         python3.10 \
         python3.10-venv \
         python3.10-distutils \
-	python3.10-dev \
-	python3-pip \
+        python3.10-dev \
+        python3-pip \
         wget \
         git \
         libgl1 \