- Python 安装库
- 下载的 whl 或者 tar.gz: python -m pip install xxx.whl / xxx.tar.gz
- pip 直接网络下载,指定国内镜像源
- 清华:python -m pip install xxx==0.1.2 -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
- 阿里云:python -m pip install xxx==0.1.2 -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
- 中科大:python -m pip install xxx==0.1.2 -i https://pypi.mirrors.ustc.edu.cn/simple/ --trusted-host pypi.mirrors.ustc.edu.cn
- 豆瓣:python -m pip install xxx==0.1.2 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
- 默认:PyPI · The Python Package Index
- 更新 pip: python -m pip install --upgrade pip
- 查看本地已安装的库及版本:python -m pip list
- 查看远程库的可用版本:python -m pip index versions xxx -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
相关的库:
- compiledb: 结合 make 生成 compile_commands.json,搭配 clangd + vscode 实现代码索引跳转。 compiledb -n make 可以直接不用编译生成对应的指令
- msys2 安装库
- pacman -S xxx,会自动查找依赖
- QT 指定国内源
- ./qt-unified-windows-x64-4.5.2-online.exe --mirror https://mirror.nju.edu.cn/qt
- .\MaintenanceTool.exe --mirror https://mirror.nju.edu.cn/qt
- QT 静态编译
- mkdir build; cd build
- ..\Src\configure.bat -static -prefix "D:\ProgramFiles\Qt\6.7.0\msvc_64_static_install" -platform win32-msvc
- cmake --build .
- cmake --install .
- cppwinrt 生成当前平台的头文件
- .\cppwinrt.exe -in local -verbose
- powershell 中查看 MSVC 默认 Include 路径,用于配置 vscode cpp include path:
- 打开
- 默认是 cmd,直接输入 powershell 切换成 powershell
- 命令:$env:INCLUDE
- 官方文档介绍,会看这几个环境变量:"LIB"、"LIBPATH"、"PATH" 和 "INCLUDE",其他几个没有看到特定的 include 路径
- 1
- 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"
- 1
- 1
- 1
- 1
软件安装专题
于 2023-10-20 21:04:12 首次发布