Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pdf-miner
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Qin Kaijie
pdf-miner
Commits
b31e1ffa
Unverified
Commit
b31e1ffa
authored
Oct 29, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Oct 29, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #810 from opendatalab/dev
(docs&build): switch to Aliyun PyPI mirror
parents
6575adea
bcedd618
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
Dockerfile
Dockerfile
+1
-1
README_zh-CN.md
README_zh-CN.md
+1
-1
README_Ubuntu_CUDA_Acceleration_zh_CN.md
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
+1
-1
README_Windows_CUDA_Acceleration_zh_CN.md
docs/README_Windows_CUDA_Acceleration_zh_CN.md
+1
-1
Dockerfile
projects/web_api/Dockerfile
+1
-1
README.md
projects/web_demo/README.md
+1
-1
README_zh-CN.md
projects/web_demo/README_zh-CN.md
+1
-1
retry_env.sh
tests/retry_env.sh
+1
-1
No files found.
Dockerfile
View file @
b31e1ffa
...
@@ -31,7 +31,7 @@ RUN python3 -m venv /opt/mineru_venv
...
@@ -31,7 +31,7 @@ RUN python3 -m venv /opt/mineru_venv
RUN
/bin/bash
-c
"source /opt/mineru_venv/bin/activate &&
\
RUN
/bin/bash
-c
"source /opt/mineru_venv/bin/activate &&
\
pip3 install --upgrade pip &&
\
pip3 install --upgrade pip &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/requirements-docker.txt &&
\
wget https://gitee.com/myhloli/MinerU/raw/master/requirements-docker.txt &&
\
pip3 install -r requirements-docker.txt --extra-index-url https://wheels.myhloli.com -i https://
pypi.tuna.tsinghua.edu.cn
/simple &&
\
pip3 install -r requirements-docker.txt --extra-index-url https://wheels.myhloli.com -i https://
mirrors.aliyun.com/pypi
/simple &&
\
pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/"
pip3 install paddlepaddle-gpu==3.0.0b1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/"
# Copy the configuration file template and install magic-pdf latest
# Copy the configuration file template and install magic-pdf latest
...
...
README_zh-CN.md
View file @
b31e1ffa
...
@@ -214,7 +214,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
...
@@ -214,7 +214,7 @@ https://github.com/user-attachments/assets/4bea02c9-6d54-4cd6-97ed-dff14340982c
```
bash
```
bash
conda create
-n
MinerU
python
=
3.10
conda create
-n
MinerU
python
=
3.10
conda activate MinerU
conda activate MinerU
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
mirrors.aliyun.com/pypi
/simple
```
```
#### 2. 下载模型权重文件
#### 2. 下载模型权重文件
...
...
docs/README_Ubuntu_CUDA_Acceleration_zh_CN.md
View file @
b31e1ffa
...
@@ -63,7 +63,7 @@ conda activate MinerU
...
@@ -63,7 +63,7 @@ conda activate MinerU
## 5. 安装应用
## 5. 安装应用
```
bash
```
bash
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
mirrors.aliyun.com/pypi
/simple
```
```
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
...
...
docs/README_Windows_CUDA_Acceleration_zh_CN.md
View file @
b31e1ffa
...
@@ -26,7 +26,7 @@ conda activate MinerU
...
@@ -26,7 +26,7 @@ conda activate MinerU
## 4. 安装应用
## 4. 安装应用
```
bash
```
bash
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
mirrors.aliyun.com/pypi
/simple
```
```
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
> ❗️下载完成后,务必通过以下命令确认magic-pdf的版本是否正确
...
...
projects/web_api/Dockerfile
View file @
b31e1ffa
...
@@ -44,7 +44,7 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
...
@@ -44,7 +44,7 @@ RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
# Create a virtual environment for MinerU
# Create a virtual environment for MinerU
RUN
python3
-m
venv /opt/mineru_venv
RUN
python3
-m
venv /opt/mineru_venv
RUN
pip config
set
global.index-url https://
pypi.tuna.tsinghua.edu.cn
/simple
RUN
pip config
set
global.index-url https://
mirrors.aliyun.com/pypi
/simple
# Activate the virtual environment and install necessary Python packages
# Activate the virtual environment and install necessary Python packages
RUN
/bin/bash
-c
"source /opt/mineru_venv/bin/activate &&
\
RUN
/bin/bash
-c
"source /opt/mineru_venv/bin/activate &&
\
pip install --upgrade pip &&
\
pip install --upgrade pip &&
\
...
...
projects/web_demo/README.md
View file @
b31e1ffa
...
@@ -40,7 +40,7 @@ yarn build
...
@@ -40,7 +40,7 @@ yarn build
# First, navigate to the back-end directory
# First, navigate to the back-end directory
cd
projects/web_demo
cd
projects/web_demo
# Install dependencies
# Install dependencies
pip3
install
-r
requirements.txt
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
pip3
install
-r
requirements.txt
-i
https://
mirrors.aliyun.com/pypi
/simple
```
```
3.
Start the service
3.
Start the service
...
...
projects/web_demo/README_zh-CN.md
View file @
b31e1ffa
...
@@ -39,7 +39,7 @@ yarn build
...
@@ -39,7 +39,7 @@ yarn build
# 先进入后端目录
# 先进入后端目录
cd
projects/web_demo
cd
projects/web_demo
# 安装依赖
# 安装依赖
pip3
install
-r
requirements.txt
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
pip3
install
-r
requirements.txt
-i
https://
mirrors.aliyun.com/pypi
/simple
```
```
3.
启动服务
3.
启动服务
...
...
tests/retry_env.sh
View file @
b31e1ffa
...
@@ -6,7 +6,7 @@ retry_count=0
...
@@ -6,7 +6,7 @@ retry_count=0
while
true
;
do
while
true
;
do
# prepare env
# prepare env
#python -m pip install -r requirements-qa.txt
#python -m pip install -r requirements-qa.txt
python
-m
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
pypi.tuna.tsinghua.edu.cn
/simple
python
-m
pip
install
-U
magic-pdf[full]
--extra-index-url
https://wheels.myhloli.com
-i
https://
mirrors.aliyun.com/pypi
/simple
python
-m
pip
install
paddlepaddle-gpu
==
3.0.0b1
-i
https://www.paddlepaddle.org.cn/packages/stable/cu118/
python
-m
pip
install
paddlepaddle-gpu
==
3.0.0b1
-i
https://www.paddlepaddle.org.cn/packages/stable/cu118/
exit_code
=
$?
exit_code
=
$?
if
[
$exit_code
-eq
0
]
;
then
if
[
$exit_code
-eq
0
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment