-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dependencies in earlier versions of Python
which is Python 2.7 and Python 3.5. We highly recommend you not to use them.
- Loading branch information
1 parent
b262c86
commit 2827697
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,8 @@ | |
|
||
* Python 2.7 或 Python 3 | ||
|
||
推荐使用 Python 3.6 或更高版本的 Python。 | ||
|
||
|
||
快速开始 | ||
------------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import sys | ||
|
||
# The pyyaml offical dropped support for Python < 3.6 in its latest version. | ||
# To make our program still available in earlier versions of Python, | ||
# we select an older version of pyyaml manually. (Not Recommend) | ||
|
||
PYYAML_VERSION = 'pyyaml' if sys.version_info >= (3, 6, 0) else 'pyyaml==5.4.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters