确认系统架构
- 点击桌面左下角的搜索按钮,输入
cmd
运行命令行界面(Command Prompt); - 在命令行界面输入
wmic CPU get DataWidth ↩︎
,返回的是 CPU 的架构,64 或 32 位; - 在命令行界面输入
wmic OS get OSArchitecture ↩︎
,返回的是 Windows 操作系统架构,64 或 32 位。
确认 PowerShell 版本
PowerShell 是 Windows 下的增强命令行环境,也是我们以后要用的主要命令行界面。以下操作继续在上面打开的命令行界面进行:
- 在命令行界面输入
powershell ↩︎
,注意到命令行界面的行首提示信息出现了PS
字样; - 在命令行界面输入
$PSVersionTable.PSVersion.Major ↩︎
。
安装命令行界面 ConEmu
- 进入 ConEmu 首页,点击 Download 按钮,选择下载 “ConEmu Alpha, Installer (32-bit, 64-bit)” 这个安装器版本;
- 运行下载好的 ConEmu 安装程序(通常叫
ConEmuSetup.xxxxx.exe
),如果前面检查的 Windows 版本为 64 位就选择安装 x64(64位)版本,否则选择 x86(32位)版本;安装时有的防病毒软件可能会报出病毒警告,请放心继续安装,这是误报。
安装后的界面:
> scoop update
Scoop uses Git to update itself. Run 'scoop install git' and try again.
> scoop install git
It looks like a previous installation of git failed.
Run 'scoop uninstall git' before retrying the install.
无法从传输连接中读取数据: 你的主机中的软件中止了一个已建立的连接。。
URL https://github.com/git-for-windows/git/releases/download/v2.23.0.windows.1/PortableGit-2.23.0-32-bit.7z.exe#/dl.7z is not valid
I tried it for a long time(about 15 hours).
The solution is:
- add
192.30.253.112 github.com
192.30.253.113 github.com
to your hosts file -
scoop install aria2
- install git
> scoop uninstall git Uninstalling 'git' (). 'git' was uninstalled. > scoop install git
- repeat step 3 until the installation is successful,make sure your network is stable
aria2's one feature
Multi-Connection Download. aria2 can download a file from multiple sources/protocols and tries to utilize your maximum download bandwidth. Really speeds up your download experience.
another solution :
- download right PortableGit-2.23.0-32-bit.7z.exe for your computer
- put it in your scoop/cache folder
> scoop uninstall git
Uninstalling 'git' ().
'git' was uninstalled.
> scoop install git
> scoop update
Updating Scoop...
Updating 'main' bucket...
Checking repo... ok
error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054
ffatal: the remote end hung up unexpectedly
atal: early EOF
fatal: index-pack failed
The main bucket was added successfully.
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
Scoop was updated successfully!
First execution of scoop update, please be patient and wait for the execution to succeed.
code .
code : 无法将“code”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保
路径正确,然后再试一次。
所在位置 行:1 字符: 1
+ code .
+ ~~~~
+ CategoryInfo : ObjectNotFound: (code:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
above error's solution is:
restart PowerShell, then re-execute code .
pip install jupyterlab, it prompt the following error
scoop\apps\python37\current\lib\site-packages\pip\_vendor\urllib3\response.py", line 430, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
default timeout is 15 sec.
the solution:
pip install jupyterlab --default-timeout 100
references:
1. https://github.com/neolee/pilot/blob/master/x1-setup.md
3. https://github.com/git-for-windows/git/releases/tag/v2.23.0.windows.1