分享一个
windows
命令行安装工具scoop
github地址:https://github.com/ScoopInstaller/scoop
安装方式:
ctrl+R
打开powershell
执行:
> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time
> irm get.scoop.sh | iex
稍等一会儿
然后报错了
我们多试几次
安装成功
搜索软件:
scoop search mongo
当然你也可以在这里搜索:https://scoop.sh/#/apps
例如安装nodejs
PS C:\> scoop install nodejs
Installing 'nodejs' (18.4.0) [64bit]
node-v18.4.0-win-x64.7z (17.3 MB) [===================================] 100%
Checking hash of node-v18.4.0-win-x64.7z ... ok.
Extracting node-v18.4.0-win-x64.7z ... done.
Linking ~\scoop\apps\nodejs\current => ~\scoop\apps\nodejs\18.4.0
Persisting bin
Persisting cache
Running post_install script...
'nodejs' (18.4.0) was installed successfully!
安装python
> scoop search python
Results from local buckets...
Name Version Source Binaries
---- ------- ------ --------
python 3.10.5 main
winpython 3.10.4.0 main
> scoop install python@3.10.4.0
...
Creating shim for 'python.exe'.
'python' (3.10.4.0) was installed successfully!
> python -c "print('Hello from Python installed by Scoop!')"
Hello from Python installed by Scoop!