![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
俯仰天地
AI Compiler Leaner
展开
-
Python如何永久修改sys.path
Python如何永久修改sys.path起因:这两天运行需要用命令行来运行python文件,但是总是报错ModuleNotFoundError: No module named 'xxx'(tf) liushanlin@liushanlindeMacBook-Air train % ~/miniforge3/envs/tf/bin/python3 resnet_cifar.py --checkpoints output/checkpointsTraceback (most recent call la原创 2021-12-11 15:06:39 · 5210 阅读 · 4 评论 -
【转载】Keras的Model模型使用(顺序结构和链式结构的用法)
Keras的Model模型使用:Keras的Model模型使用转载 2021-11-23 11:23:51 · 214 阅读 · 0 评论 -
网格搜索报错:(GridSearchCV): ‘ascii‘ codec can‘t encode characters in position 18-20: ordinal not in r
网格搜索报错:UnicodeEncodeError: ‘ascii’ codec can’t encode characters in position 18-20: ordinal not in range(128)E:\DLstudy\Scripts\python.exe E:/PycharmProjects/DLstudy/run/train_model.py[INFO] tuning hyperparameters...Traceback (most recent call last):原创 2021-10-23 17:44:24 · 4128 阅读 · 27 评论 -
centos安装python及导入cv2出现的问题及踩坑记录
想在容器中使用python,但python的官方镜像太过于精简,里面不管是yum还是vi 还是vim都没有安装,使用起来比较不方便,于是决定在centos基础镜像中安装python环境,具体步骤和遇到的问题如下:下载centos官方镜像[root@lingg ~]# docker pull centos运行centos镜像[root@lingg ~]# docker run -it 镜像ID /bin/bash安装python环境yum -y install python3查看pytho原创 2021-09-27 22:59:26 · 1975 阅读 · 0 评论