Skip to content

Commit 62bf515

Browse files
author
NoDocCat
authored
[TOOLS] Add scoop article in tools (PKUFlyingPig#302)
* [TOOLS] Add scoop article in tools * [UPDATE] Add scoop link in environment configuration
1 parent 319c154 commit 62bf515

File tree

3 files changed

+53
-1
lines changed

3 files changed

+53
-1
lines changed

docs/CS学习规划.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ IDE (Integrated Development Environment):集成开发环境,说白了就是
5050
5151
### PC 端环境配置
5252

53-
如果你是 Mac 用户,那么你很幸运,这份[指南](https://sourabhbajaj.com/mac-setup/) 将会手把手地带你搭建起整套开发环境。如果你是 Windows 用户,可以参考这个相对简略的[教程](https://github.com/orlp/dev-on-windows/wiki)
53+
如果你是 Mac 用户,那么你很幸运,这份[指南](https://sourabhbajaj.com/mac-setup/) 将会手把手地带你搭建起整套开发环境。如果你是 Windows 用户,在开源社区的努力下,你同样可以获得与其他平台类似的体验:[Scoop](/必学工具/Scoop)
5454

5555
另外大家可以参考一份灵感来自 [6.NULL MIT-Missing-Semester](编程入门/MIT-Missing-Semester.md)[环境配置指南][guide],重点在于终端的美化配置。此外还包括常用软件源(如 GitHub, Anaconda, PyPI 等)的加速与替换以及一些 IDE 的配置与激活教程。
5656

docs/必学工具/Scoop.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Scoop
2+
3+
## 为什么使用 Scoop
4+
5+
在 Windows 下,搭建开发环境一直是一个复杂且困难的问题。由于没有一个统一的标准,导致各种开发环境的安装方式差异巨大,需要付出很多不必要的时间成本。而 Scoop 可以帮助你统一安装并管理常见的开发软件,省去了手动下载安装,配置环境变量等繁琐步骤。
6+
7+
例如安装 python 和 nodejs 只需要执行:
8+
9+
```powershell
10+
scoop install python
11+
scoop install nodejs
12+
```
13+
14+
## 安装 Scoop
15+
16+
Scoop 需要 [Windows PowerShell 5.1](https://aka.ms/wmf5download) 或者 [PowerShell](https://aka.ms/powershell) 作为运行环境,如果你使用的是 Windows 10 及以上版本,Windows PowerShell 是内置在系统中的。而 Windows 7 内置的 Windows PowerShell 版本过于陈旧,你需要手动安装新版本的 PowerShell。
17+
18+
> 由于发现很多同学在设置 Windows 用户时使用了中文用户名,导致了用户目录也变成了中文名。如果按照 Scoop 的默认方式将软件安装到用户目录下,可能会造成部分软件执行错误。所以这里推荐安装到自定义目录,如果需要其他安装方式请参考: [ScoopInstaller/Install](https://github.com/ScoopInstaller/Install)
19+
20+
```powershell
21+
# 设置 PowerShell 执行策略
22+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
23+
# 下载安装脚本
24+
irm get.scoop.sh -outfile 'install.ps1'
25+
# 执行安装, --ScoopDir 参数指定 Scoop 安装路径
26+
.\install.ps1 -ScoopDir 'C:\Scoop'
27+
```
28+
29+
## 使用 Scoop
30+
31+
Scoop 的官方文档对于新手非常友好,相对于在此处赘述更推荐阅读 [官方文档](https://github.com/ScoopInstaller/Scoop)[快速入门](https://github.com/ScoopInstaller/Scoop/wiki/Quick-Start)
32+
33+
## Q&A
34+
35+
### Scoop 能配置镜像源吗?
36+
37+
Scoop 社区仅维护安装配置,所有的软件都是从该软件官方提供的下载链接进行下载,所以无法提供镜像源。如果因为你的网络环境导致多次下载失败,那么你需要一点点 [魔法](/必学工具/翻墙/)
38+
39+
### 为什么找不到 Java8?
40+
41+
原因同上,官方已不再提供 Java8 的下载链接,推荐使用 [ojdkbuild8](https://github.com/ScoopInstaller/Java/blob/master/bucket/ojdkbuild8.json) 替代。
42+
43+
### 我需要安装 python2 该如何操作?
44+
45+
对于已经过时弃用的软件,Scoop 社区会将其从 [ScoopInstaller/Main](https://github.com/ScoopInstaller/Main) 中移除并将其添加到 [ScoopInstaller/Versions](https://github.com/ScoopInstaller/Versions) 中。如果你需要这些软件的话需要手动添加 bucket:
46+
47+
```powershell
48+
scoop bucket add version
49+
scoop install python27
50+
```
51+

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ nav:
129129
- CMake: "必学工具/CMake.md"
130130
- LaTeX: "必学工具/LaTeX.md"
131131
- Docker: "必学工具/Docker.md"
132+
- Scoop: "必学工具/Scoop.md"
132133
- 日常学习工作流: "必学工具/workflow.md"
133134
- 实用工具箱: "必学工具/tools.md"
134135
- 毕业论文: "必学工具/thesis.md"

0 commit comments

Comments
 (0)