Skip to content

Commit 26d9937

Browse files
woailaosangljshou
authored andcommitted
remove torch from requirements.txt (#32)
1 parent 519cb40 commit 26d9937

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,15 @@ Users can either pick existing models (config files) in *Model Zoo* to start mod
5959
```bash
6060
pip install -r requirements.txt
6161
```
62-
*NeuronBlocks requires **PyTorch 0.4.1** currently* and automatically gets installed by the above on **Linux**.
63-
64-
For **Windows**, we suggest you to install PyTorch via *Conda* by following the instructions of PyTorch [here](https://pytorch.org/get-started/locally/).
65-
6662

63+
3. Install PyTorch (*NeuronBlocks supports **PyTorch 0.4.1** and above*).
64+
65+
For **Linux**, run the following command:
66+
```bash
67+
pip install "torch>=0.4.1"
68+
```
69+
70+
For **Windows**, we suggest you to install PyTorch via *Conda* by following the instruction of [PyTorch](https://pytorch.org/get-started/locally/).
6771

6872

6973
## <span id="quick-start">Quick Start</span>

README_zh_CN.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NeuronBlocks包括 ***Block Zoo*** 和 ***Model Zoo*** 两个重要组件,其
5151
# 快速入门
5252
## 安装
5353

54-
*注: NeuronBlocks支持 **Python 3.6***
54+
*注: NeuronBlocks支持 **Python 3.6**及以上*
5555

5656
1. Clone本项目:
5757
```bash
@@ -63,13 +63,13 @@ NeuronBlocks包括 ***Block Zoo*** 和 ***Model Zoo*** 两个重要组件,其
6363
pip install -r requirements.txt
6464
```
6565

66-
3. 安装PyTorch ( *NeuronBlocks支持 **PyTorch 0.4.1** * ).
66+
3. 安装PyTorch ( *NeuronBlocks支持 **PyTorch 0.4.1** 及以上*):
6767

6868
对于 **Linux** ,运行以下命令:
6969
```bash
70-
pip install torch==0.4.1
70+
pip install "torch>=0.4.1"
7171
```
72-
对于 **Windows** ,建议按照[PyTorch官方安装教程](https://pytorch.org/get-started/previous-versions/)通过Conda安装PyTorch。
72+
对于 **Windows** ,建议按照[PyTorch官方安装教程](https://pytorch.org/get-started/locally/)通过Conda安装PyTorch。
7373

7474

7575
## 快速开始

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ numpy==1.16.3
55
scikit-learn==0.20.3
66
ftfy==5.5.1
77
jieba==0.39
8-
torch==0.4.1

0 commit comments

Comments
 (0)