配环境de记录

Pytorch

  • 系统:mac
  • 基础:配置过环境,inport不行
BUG
  • 无GPU环境运行的通病
    RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False. If you are running on a CPU-only machine, please use torch.load with map_location=‘cpu’ to map your storages to the CPU.
    解决:
#改为
torch.load(model_path, map_location='cpu')
  • conda更新的问题
    Verifying transaction: failed
    解决:
    删除对应文件
    或如下更新:
conda update --force conda
  • import torch出问题
    我重新创建了一个虚拟环境,重新安装了所有环境……
    mac安装pytorch教程

  • self._handle = _dlopen(self._name, mode)
    解决:

conda install -c conda-forge shapely
TIPS
  • 查看GPU是否可用
import torch

print(torch.__version__)  # 查看torch当前版本号

print(torch.version.cuda)  # 编译当前版本的torch使用的cuda版本号

print(torch.cuda.is_available())  # 查看当前cuda是否可用于当前版本的Torch,如果输出True,则表示可用

Flutter

  • 系统:windows
  • 基础:未配置过相关环境
BUG
  • 运行时磁盘空间不足
    emulator: ERROR: Not enough space to create userdata partition. Available: 4615.257813 MB at C:\Users\lihao.android\avd\Pixel_XL_API_30.avd, need 7372.800000 MB. emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)

    解决

  • unable to locate adb
    File-Project Structure-Project SDK
    正确填写SDK路径。

  • emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature. Please use -read-only flag to enable this feature. emulator: Android emulator version 30.3.5.0 (build_id 7033400) (CL:N/A)

模拟器重复打开,我是关闭重启就好了。

Vue

  • 系统:mac
  • 基础:配置过相关环境
BUG
  • 运行npm run build命令
    webpack-dev-server: command not found错误
    没有安装webpack环境
    解决
  • webpack版本不匹配
    Error: Cannot find module ‘webpack-cli/bin/config-yargs’
    解决
  • 找不到运行命令
    检查是不是运行所在的文件夹不对

FuntionGraph

  • 系统:mac
Sandbox
  • 运行./install.sh出错
    -bash: ./install.sh: Permission denied
    解决方法:进入该级目录执行 sudo chmod 777 ./*.sh
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值