软件安装专题

  1. Python 安装库
    1. 下载的 whl 或者 tar.gz: python -m pip install xxx.whl / xxx.tar.gz
    2. pip 直接网络下载,指定国内镜像源
      1. 清华:python -m pip install xxx==0.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
      2. 阿里云:python -m pip install xxx==0.1.2 -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
      3. 中科大:python -m pip install xxx==0.1.2 -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn
      4. 豆瓣:python -m pip install xxx==0.1.2 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
      5. 默认:PyPI · The Python Package Index
    3. 更新 pip: python -m pip install --upgrade pip
    4. 查看本地已安装的库及版本:python -m pip list
    5. 查看远程库的可用版本:python -m pip index versions xxx -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn

    相关的库:

    1. compiledb: 结合 make 生成 compile_commands.json,搭配 clangd + vscode 实现代码索引跳转。 compiledb -n make 可以直接不用编译生成对应的指令
  2. msys2 安装库
    1. pacman -S xxx,会自动查找依赖
  3. QT 指定国内源
    1. ./qt-unified-windows-x64-4.5.2-online.exe --mirror https://mirror.nju.edu.cn/qt
    2. .\MaintenanceTool.exe --mirror https://mirror.nju.edu.cn/qt
  4. QT 静态编译
    1. mkdir build; cd build
    2. ..\Src\configure.bat -static -prefix "D:\ProgramFiles\Qt\6.7.0\msvc_64_static_install" -platform win32-msvc
    3. cmake --build .
    4. cmake --install .
  5. cppwinrt 生成当前平台的头文件
    1. .\cppwinrt.exe -in local -verbose
  6. powershell 中查看 MSVC 默认 Include 路径,用于配置 vscode cpp include path:
    1. 打开
    2. 默认是 cmd,直接输入 powershell 切换成 powershell
    3. 命令:$env:INCLUDE
    4. 官方文档介绍,会看这几个环境变量:"LIB"、"LIBPATH"、"PATH" 和 "INCLUDE",其他几个没有看到特定的 include 路径
    5. 1
  7. gitclone 加速下载
    • 使用 git clone 时,替换原来的链接。例如,原本的 git clone 命令为:"git clone https://github.com/microsoft/vcpkg.git",在链接中添加"gitclone.com",可以大大加快速度。修改后的 cmd 为:"git clone https://gitclone.com/github.com/microsoft/vcpkg.git"
  8. 1
  9. 1
  10. 1
  11. 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值