Skip to content

Commit 193a30c

Browse files
committed
docs(tools): add pip/errors
1 parent 289fc1b commit 193a30c

File tree

4 files changed

+37
-61
lines changed

4 files changed

+37
-61
lines changed

docs/.vuepress/config.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import { mdEnhancePlugin } from 'vuepress-plugin-md-enhance'
55
import { copyCodePlugin } from 'vuepress-plugin-copy-code2'
66
import { searchProPlugin } from 'vuepress-plugin-search-pro'
77
import { autoCatalogPlugin } from 'vuepress-plugin-auto-catalog'
8-
// import { shikiPlugin } from '@vuepress/plugin-shiki'
98

109
const __dirname = getDirname(import.meta.url)
1110
const isProd = process.env.NODE_ENV === 'production'
@@ -33,20 +32,12 @@ export default defineUserConfig({
3332
editLinkText: '在 GitHub 上编辑此页',
3433
contributorsText: '贡献者',
3534
lastUpdatedText: '上次更新',
35+
openInNewWindow: '在新窗口打开',
36+
toggleColorMode: '切换深色模式',
37+
toggleSidebar: '切换侧边栏',
3638
navbar: [
3739
],
38-
sidebar: {
39-
'/pypi-package/pyside6': [
40-
'/pypi-package/pyside6/chapter01/',
41-
'/pypi-package/pyside6/chapter02/',
42-
'/pypi-package/pyside6/chapter03/',
43-
'/pypi-package/pyside6/chapter04/',
44-
'/pypi-package/pyside6/chapter05/',
45-
'/pypi-package/pyside6/chapter06/',
46-
'/pypi-package/pyside6/chapter07/',
47-
'/pypi-package/pyside6/chapter08/',
48-
]
49-
},
40+
sidebar: 'auto',
5041
}),
5142
plugins: [
5243
mdEnhancePlugin({
@@ -114,7 +105,6 @@ export default defineUserConfig({
114105
copyCodePlugin({
115106
showInMobile: true
116107
}),
117-
// isProd ? shikiPlugin({ theme: 'dark-plus' }) : [],
118108
],
119109
alias: {
120110
'@': path.resolve(

docs/tools/pip/errors.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# pip 错误合集
2+
3+
[[TOC]]
4+
5+
## 1. 网络问题列表
6+
7+
出现下面任何一种情况:
8+
- `These Packages Do Not Match The Hashes From The Requirements File.`
9+
- `THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE`
10+
11+
哈希校验错误,原因可能是使用不安全传输时出现错误,重复尝试或者更换网络环境即可,一般是网络环境过差。
12+
13+
如果正在使用 HTTPS,可能出现下面的情况:
14+
- `pip decryption failed or bad record mac (_ssl.c:2309)`
15+
- `ERROR: Could not install packages due to an EnvironmentError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC]`
16+
17+
可能是网络受到攻击,或者是网络环境过差,可以尝试更换网络环境或者使用代理。
18+
19+
::: tip 解决
20+
21+
可以在其他环境使用 `pip download` 下载包,然后在当前环境使用 `pip install` 安装。在 Linux 下使用 `md5sum` 或者 `sha256sum` 命令计算哈希值。如果哈希值于服务器提供的不同则是网络传输问题。
22+
23+
:::

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"license": "ISC",
2222
"devDependencies": {
2323
"@vuepress/client": "2.0.0-beta.61",
24-
"@vuepress/plugin-shiki": "2.0.0-beta.61",
2524
"@vuepress/utils": "2.0.0-beta.61",
2625
"vue": "^3.2.47",
2726
"vuepress": "2.0.0-beta.61",

pnpm-lock.yaml

Lines changed: 10 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)