随笔分类 -  软件配置

conda安装报错:Verifying transaction: failed CondaVerificationError:
摘要:报错如下 解决办法 把报错图中框出来的路径删掉 然后重新执行安装、或新建环境命令就可以了 阅读全文
posted @ 2022-03-22 18:37 jaysonteng 阅读(4038) 评论(0) 推荐(0)
windows conda Permission to listen on port 8888 denied
摘要:报错情况 当启动jupyter notebook 或者 jupyter lab时候出现如下报错: 解决办法 ## 法一:临时 # 通过如下命令,指定端口号启动jupyter jupyter notebook --port 9999 ## 法二:永久 # 生成配置文件 jupyter notebook 阅读全文
posted @ 2022-01-13 23:31 jaysonteng 阅读(901) 评论(2) 推荐(1)
cudnn安装
摘要:1、查看cuda版本 # 法一: nvcc -V # 法二: whereis cuda # 查看cuda路径 cat */cuda/version.txt # 通过上面查到的路径读取version文件 2、下载cudnn 链接:https://developer.nvidia.com/rdp/cud 阅读全文
posted @ 2021-12-08 14:23 jaysonteng 阅读(1283) 评论(0) 推荐(0)
windows环境变量备份与恢复
摘要:环境变量备份 Win + R打开搜索框,输入regedit 打开注册表,如下图所示: 系统变量: 在注册表框中输入: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment 右键Environme 阅读全文
posted @ 2021-11-17 10:10 jaysonteng 阅读(2623) 评论(0) 推荐(0)
jupyter notebook切换环境
摘要:在jupyter代码中查看当前使用到的环境 import sys sys.executable # 查看当前执行环境 查看kernel 如下图所示,可以看到能被jupyter使用的kernel 也可以通过如下命令行查看 jupyter kernelspec list # 此命令可以查看能被jupyt 阅读全文
posted @ 2021-09-09 16:43 jaysonteng 阅读(832) 评论(0) 推荐(0)
设置pycharm打开terminal终端,自动进入虚拟环境的办法
摘要:本来一直打开terminal,会直接进入对应的虚拟环境, 直到有一天更新 pycharm后,发现打开terminal后直接进入了base环境,每次都要手动activate一下,比较麻烦 仔细观察才发现,terminal使用了windows的powershell,如下图所示: 解决办法: Settin 阅读全文
posted @ 2021-09-09 11:50 jaysonteng 阅读(6864) 评论(0) 推荐(2)
生成项目目录结构树
摘要:都是在命令行使用tree命令,但是windows和linux的命令参数有区别 windows 命令参数很少,只有 /f 和 /A 两个参数 tree /f ./ > tree.txt # 生成结构(包括所有文件)到 tree.txt tree > tree.txt # 只生成文件夹(不包含文件)的结 阅读全文
posted @ 2021-07-14 09:53 jaysonteng 阅读(284) 评论(0) 推荐(0)
windows pip is configured with locations that require TLS/SSL, however the ssl module in Python i...
摘要:原因 Anaconda 环境变量未配置完全 解决办法 需要配置的环境变量: D:\ProgramData\Anaconda3 D:\ProgramData\Anaconda3\Scripts D:\ProgramData\Anaconda3\Library\bin 参考链接 阅读全文
posted @ 2021-07-11 23:23 jaysonteng 阅读(149) 评论(0) 推荐(0)
python opencv cv2打开中文路径图片报错:cv2.error: OpenCV(4.5.1) ..\modules\imgproc\src\color.cpp:182: error
摘要:报错如下 Traceback (most recent call last): File "D:\Users\Admin\Anaconda3\envs\tf1\lib\site-packages\IPython\core\interactiveshell.py", line 3437, in run 阅读全文
posted @ 2021-07-09 17:30 jaysonteng 阅读(2598) 评论(0) 推荐(0)
dlib安装-CPU-GPU
摘要:conda安装 conda install dlib # cpu版本 编译安装 CPU版本 下载链接:http://dlib.net/files/ 注意:python和dlib有版本兼容问题,需要下载兼容的版本,不然安装会报错 安装cmake: pip install cmake 下载后,解压,进入 阅读全文
posted @ 2021-07-09 15:26 jaysonteng 阅读(1315) 评论(0) 推荐(0)
git bash执行python命令行无反应
摘要:现象 在git bash查看python环境,python版本都没有问题,但是输入python进入命令行会卡住 原因 在安装时候选择了MinTTY模式,其默认不支持交互操作 解决办法 使用命令:winpty python 正常进入命令行交互模式 其他报错 若输入 winpty python出现 st 阅读全文
posted @ 2021-07-06 09:29 jaysonteng 阅读(1778) 评论(0) 推荐(1)
windows git配置
摘要:报错一 ## 报错代码: #1.情况1 unable to execute file code740 #2.情况2 This problem is probably due to using incompatible versions of the cygwin DLL. Search for cy 阅读全文
posted @ 2021-07-02 11:13 jaysonteng 阅读(350) 评论(0) 推荐(0)
windows解除文件占用
摘要:问题现象 有时候删除或重命名一些文件,会提示在另一个程序中打开,但是未提示具体是哪个程序在使用, 如下图所示: 解决办法 打开“任务管理器”,依次点击: 性能--> 打开资源监视器 选择:CPU --> 搜索句柄 输入被占用的文件名,稍等片刻 搜索结果出来后,即可知道什么程序占用了文件 右键,结束进 阅读全文
posted @ 2021-06-30 14:08 jaysonteng 阅读(1107) 评论(0) 推荐(0)
谷歌浏览器 禁用 reading list
摘要:在浏览器输入:chrome://flags/ 在页面搜索:reading list 如下图所示,禁用此功能即可 阅读全文
posted @ 2021-06-30 10:49 jaysonteng 阅读(202) 评论(0) 推荐(0)
windows无法调节电脑亮度
摘要:解决办法 情况1. 安装了向日葵远程软件 **解决方法:**在向日葵设置中,隐私设置--> 黑屏模式,关掉 情况2.卸载驱动 **解决方法:**开始-->管理工具-->计算机管理-->设备管理器-->监视器-->Generic Monitor(orayDPMS)-->右键进行卸载,如下图所示 参考链 阅读全文
posted @ 2021-06-19 15:09 jaysonteng 阅读(688) 评论(0) 推荐(0)
module 'torchvision' has no attribute 'ops'
摘要:解决办法 torch与torchvision版本不兼容,先卸载原来版本: pip uninstall torch pip uninstall torchvision pip uninstall torchaudio # 若有 再安装 installed torch-1.8.1 pip install 阅读全文
posted @ 2021-06-07 11:43 jaysonteng 阅读(2606) 评论(0) 推荐(0)
labelImg闪退【解决方案】
摘要:1、你的labelImg路径中不能出现中文,如果有,换个不带中文的路径 2、删除 C:\Users\YourAccount\.labelImgSettings.pkl,重新打开labelImg,问题解决。 原文链接:https://blog.csdn.net/csdn_zhishui/article 阅读全文
posted @ 2021-06-03 18:31 jaysonteng 阅读(6398) 评论(0) 推荐(0)
git添加ssh key密钥
摘要:生成key文件 windows:ssh-key -t rsa linux:ssh-keygen -o 将文件复制到git网站 1、通过文本方式打开id_rsa.pub文件 windows系统:c:/users/用户名/.ssh/id_rsa.pub linux系统:~/.ssh/id_rsa.pub 阅读全文
posted @ 2021-05-10 13:35 jaysonteng 阅读(361) 评论(0) 推荐(0)
ubuntu国内镜像源
摘要:安装Ubuntu 18.04后,使用国外源太慢了,修改为国内源会快很多。 修改阿里源为Ubuntu 18.04默认的源 备份/etc/apt/sources.list cp /etc/apt/sources.list /etc/apt/sources.list.bak 在/etc/apt/sourc 阅读全文
posted @ 2021-04-27 11:02 jaysonteng 阅读(1655) 评论(2) 推荐(0)
AttributeError: 'str' object has no attribute 'decode'
摘要:报错详情 File "/home/ffggh/miniconda3/envs/py36/lib/python3.6/site-packages/keras/engine/saving.py", line 242, in _deserialize_model model_config = json.l 阅读全文
posted @ 2021-04-24 14:37 jaysonteng 阅读(311) 评论(0) 推荐(1)