- 博客(182)
- 收藏
- 关注
原创 vscode ssh远程连接已配置好仍然不能自动登录问题解决
这条消息表示 SSH 服务拒绝了认证请求,原因是 /home/ubuntu 目录的所有权或权限设置不正确。在 Linux 系统中,SSH 服务的日志通常记录在 /var/log/ 目录下。默认情况下,SSH 日志文件可能位于 /var/log/secure 或 /var/log/auth.log,这取决于你的 Linux 发行版。要看日志确定是什么原因,每个人的原因可能不一样,照搬网络上的解决方法可能会不适用。本地登录,看登录的时间对应的日志的那个时间的内容,确定不能登录的原因。照做然后就解决了问题。
2025-01-01 15:59:57
517
原创 HJ16 购物单
python初始化数组如果用列表需要注意行的复制要用for i in range,如果直接用星号乘会是浅拷贝导致修改一个值所有行的对应位置都会改变。dp[i][j] i是遍历到第i个物件,j是当前可用预算,dp[i][j]为遍历到第i个物件有预算j时的最大满足值。
2023-10-26 14:44:40
255
原创 Couldn‘t create temporary file /tmp/apt.conf.74g9aU for passing config to apt-key
Couldn’t create temporary file /tmp/apt.conf.74g9aU for passing config to apt-keychmod 777 /tmp
2023-07-25 11:26:58
104
原创 ResolvePackageNotFound: - cudatoolkit=11.1 yaml
命令行:conda env create -f environment.yml。加上 - conda-forge。我用yaml文件下载环境,在 -nvidia 下面。
2023-06-26 11:28:15
1298
1
原创 vscode连远程服务器时无法写入
我修改了Temp文件的权限后不能解决,具体操作是修改Temp文件的所有用户的权限为完全控制。原因在于,它是对Temp文件下的某个sh文件没有写入权限,而我修改的是Temp文件的权限。权限问题,某个用户没有写入权限, 对Temp\xxxxxx.sh文件的写入权限。应该要使得Temp下的文件,递归地,所有子文件都有写入权限才行。勾选“使用可从次对象继承的权限项目替换所有子对象的权限项目”这样sh文件就有写入权限了。左点击Temp文件,
2023-06-25 11:42:32
1359
原创 PermissionError: [WinError 5] 拒绝访问。: ‘C:\\Users\\Administrator\\AppData\\Local\\Temp
修改Temp文件属性,权限对象设为"all user",控制权限设为“完全控制"
2023-06-21 19:05:26
1490
原创 CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate‘.
conda activate your shell has not been properly configured to use 'conda activate'
2023-06-02 12:12:30
137
原创 [W pthreadpool-cpp.cc:90] Warning: Leaking Caffe2 thread-pool after fork. (function pthreadpool)
keaking caffe2 thread-pool after fork
2023-02-20 11:18:34
589
1
原创 python环境里明明有那个库但是就no module named XXX
python环境里有某个库但是报错说no module named XXX
2023-02-09 11:10:58
1091
原创 Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
python3 failed to get the Python codec of the filesystem encoding
2023-02-08 16:34:20
6607
原创 PIL.Image 打开的图片用numpy和to_tensor获得的数据的shape的不同
PIL.Image 打开的图片用numpy 和to_tensor获得的数据的shape的不同
2023-02-03 16:34:14
330
原创 RuntimeError: Default process group has not been initialized, please make sure to call init_process_
default porcess group has not been initialized, please make sure to call init_process_syncbatchnorm 只能多GPU训练
2023-02-01 18:41:54
1210
原创 ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
pip install no space left on device
2023-02-01 18:03:29
1101
原创 ImportError: libtorch_cuda_cu.so: cannot open shared object file: No such file or directory
libtorch_cuda_cu.so:cannot open shared object file: No such file or directory
2023-02-01 10:57:27
13362
2
原创 AttributeError: module ‘numpy‘ has no attribute ‘object‘
AttributeError: module 'numpy' has no attribute 'object' tensorboard
2023-01-31 17:42:10
31876
原创 PackagesNotFoundError: The following packages are not available from current channels:
packages are not available from current channels
2023-01-06 10:33:22
289
原创 mix_transformer demo 没有写原因只写了killed程序就停了
mix_transformer killed 降低输入大小解决问题
2023-01-04 11:42:53
293
原创 ERROR: No matching distribution found for torch===1.7.0+cu110
no matching distribution found for torch==1.7.0+cu110-f https://download.pytorch.org/whl/torch_stable.html
2023-01-02 15:37:04
2930
2
原创 ModuleNotFoundError: No module named ‘setuptools.command.build‘
No module named 'setuptools.command.build'pip install -U pip setuptools 更新一下即可
2023-01-01 17:47:22
1670
原创 怎么推理还cuda out of memory
推理还cuda out of memory 是有问题的,要加上不计算梯度的with torch.no_grad()
2022-12-30 11:03:03
201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人