Skip to content

Commit

Permalink
update to py3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
zh794390558 committed Jun 13, 2023
1 parent a2ae639 commit 051759d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,13 +227,13 @@ Via the easy-to-use, efficient, flexible and scalable implementation, our vision

## Installation

We strongly recommend our users to install PaddleSpeech in **Linux** with *python>=3.7* and *paddlepaddle>=2.4.1*.
We strongly recommend our users to install PaddleSpeech in **Linux** with *python>=3.8* and *paddlepaddle>=2.5.0*.

### **Dependency Introduction**

+ gcc >= 4.8.5
+ paddlepaddle >= 2.4.1
+ python >= 3.7
+ paddlepaddle >= 2.5.0
+ python >= 3.8
+ OS support: Linux(recommend), Windows, Mac OSX

PaddleSpeech depends on paddlepaddle. For installation, please refer to the official website of [paddlepaddle](https://www.paddlepaddle.org.cn/en) and choose according to your own machine. Here is an example of the cpu version.
Expand Down
6 changes: 3 additions & 3 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-Apache%202-red.svg"></a>
<a href="https://github.com/PaddlePaddle/PaddleSpeech/releases"><img src="https://img.shields.io/github/v/release/PaddlePaddle/PaddleSpeech?color=ffa"></a>
<a href="support os"><img src="https://img.shields.io/badge/os-linux%2C%20win%2C%20mac-pink.svg"></a>
<a href=""><img src="https://img.shields.io/badge/python-3.7+-aff.svg"></a>
<a href=""><img src="https://img.shields.io/badge/python-3.8+-aff.svg"></a>
<a href="https://github.com/PaddlePaddle/PaddleSpeech/graphs/contributors"><img src="https://img.shields.io/github/contributors/PaddlePaddle/PaddleSpeech?color=9ea"></a>
<a href="https://github.com/PaddlePaddle/PaddleSpeech/commits"><img src="https://img.shields.io/github/commit-activity/m/PaddlePaddle/PaddleSpeech?color=3af"></a>
<a href="https://github.com/PaddlePaddle/PaddleSpeech/issues"><img src="https://img.shields.io/github/issues/PaddlePaddle/PaddleSpeech?color=9cc"></a>
Expand Down Expand Up @@ -241,8 +241,8 @@

### 相关依赖
+ gcc >= 4.8.5
+ paddlepaddle >= 2.4.1
+ python >= 3.7
+ paddlepaddle >= 2.5.0
+ python >= 3.8
+ linux(推荐), mac, windows

PaddleSpeech 依赖于 paddlepaddle,安装可以参考[ paddlepaddle 官网](https://www.paddlepaddle.org.cn/),根据自己机器的情况进行选择。这里给出 cpu 版本示例,其它版本大家可以根据自己机器的情况进行安装。
Expand Down
4 changes: 2 additions & 2 deletions docs/source/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ bash
```
Then you can create a conda virtual environment using the following command:
```bash
conda create -y -p tools/venv python=3.7
conda create -y -p tools/venv python=3.8
```
Activate the conda virtual environment:
```bash
Expand Down Expand Up @@ -181,7 +181,7 @@ $HOME/miniconda3/bin/conda init
# use the "bash" command to make the conda environment works
bash
# create a conda virtual environment
conda create -y -p tools/venv python=3.7
conda create -y -p tools/venv python=3.8
# Activate the conda virtual environment:
conda activate tools/venv
# Install the conda packages
Expand Down
4 changes: 2 additions & 2 deletions docs/source/install_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bash
```
然后你可以创建一个 conda 的虚拟环境:
```bash
conda create -y -p tools/venv python=3.7
conda create -y -p tools/venv python=3.8
```
激活 conda 虚拟环境:
```bash
Expand Down Expand Up @@ -173,7 +173,7 @@ $HOME/miniconda3/bin/conda init
# 激活 conda
bash
# 创建 Conda 虚拟环境
conda create -y -p tools/venv python=3.7
conda create -y -p tools/venv python=3.8
# 激活 Conda 虚拟环境:
conda activate tools/venv
# 安装 Conda 包
Expand Down
3 changes: 1 addition & 2 deletions docs/topic/package_release/python_package_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ docker run -it xxxxxx
设置python:

```bash
export PATH="/opt/python/cp37-cp37m/bin/:$PATH"
#export PATH="/opt/python/cp38-cp38/bin/:$PATH"
export PATH="/opt/python/cp38-cp38/bin/:$PATH"
#export PATH="/opt/python/cp39-cp39/bin/:$PATH"
```

Expand Down
4 changes: 2 additions & 2 deletions runtime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Environment

We develop under:
* python - 3.7
* python - >=3.8
* docker - `registry.baidubce.com/paddlepaddle/paddle:2.2.2-gpu-cuda10.2-cudnn7`
* os - Ubuntu 16.04.7 LTS
* gcc/g++/gfortran - 8.2.0
Expand Down Expand Up @@ -98,7 +98,7 @@ please install paddlepaddle >= 2.4rc


```
cd $YOUR_ENV_PATH/lib/python3.7/site-packages/paddle/fluid
cd $YOUR_ENV_PATH/lib/python3.8/site-packages/paddle/fluid
patchelf --set-soname libpaddle.so libpaddle.so
```

Expand Down
2 changes: 1 addition & 1 deletion runtime/tools/venv.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
set -ex

PYTHON=python3.7
PYTHON=python3.8
test -d venv || virtualenv -p ${PYTHON} venv
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SHELL:= /bin/bash
PYTHON:= python3.7
PYTHON:= python3.8

CXX ?= g++
CC ?= gcc # used for sph2pipe
Expand Down

0 comments on commit 051759d

Please sign in to comment.