编辑
2023-09-29
前端
00

旧删除方式

rm -rf ./node_modules

快速删除方式

编辑
2023-09-15
安装与配置
00

卸载当前版本

在应用管理中正常卸载即可

安装旧版本

Google 没有提供早期版本 Chrome 的下载页面。

需要从第三方替代品下载过时的 Chrome 版本。

编辑
2023-09-07
安装与配置
00
编辑
2023-08-22
安装与配置
00

问题场景

在使用 pyenv 时,系统的环境变量一般记录的是 pyenv 的 path

而没有明确在系统环境变量中,添加 python 的 path

部分程序场景需要直接获取 python 的 path,调用 python 执行命令

bat
# windows bat 文件中获取环境变量中定义的 python # 定义 python if not defined PYTHON ( set PYTHON=python ) # 调用 python 执行命令 %PYTHON% -c "" >tmp/stdout.txt 2>tmp/stderr.txt

该代码在 pyenv 下无法运行,因为 PYTHON = python 这里的 python 不在任何 系统环境变量

编辑
2023-08-22
Python
00

什么时候需要切换pip源

  1. 当前 pip 源没有需要安装的第三方包 (No matching distribution found for tb-nightly
  2. 当前 pip 源下载速度慢

查看pip配置

shell
python -m pip config list

其中 index-url 即为 pip 下载源

切换 pip 源

shell
# 切换为 阿里源 python -m pip config set global.index-url https://mirrors.aliyun.com/pypi/simple # 切换为 清华源 python -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple