随笔分类 - Python Debug
Recording problems and solutions while debugging Python program
摘要:系统:Ubuntu 18.0 CUDA: 10.0.130 仅支持tensorflow 1.14.0以上,否则import时报错 ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
阅读全文
摘要:最近在linux上是用conda虚拟环境出现很多问题。 比如使用conda activate py3.7激活环境后发现python搜索路径依然是默认路径: In [1]: import sys In [2]: sys.path Out[2]: ['/home/sherry/anaconda3/bin
阅读全文
摘要:问题描述 conda create -n py3.7 python=3.7 anaconda conda activate py3.7 pip freeze #show global packages pip install pytesseract #installed in root enviro
阅读全文
摘要:Mac系统安装完Anaconda 3.7后在terminal输入conda --version,返回command not found 原因可能是没有配置环境变量 在terminal输入vi ~/.bash_profile,检查环境变量已配置 在terminal输入export PATH=~/opt
阅读全文
摘要:最近做Machine Learning作业,要在Jupyter Notebook上用Keras搭建Neural Network。结果连最简单的一层神经网络都运行不了,更奇怪的是我先用iris数据集跑了一遍并没有任何问题,但是用老师给的fashion mnist一运行服务器就提示挂掉重启。更更奇怪的是
阅读全文
摘要:I Got a SettingWithCopyWarning when I ran the following code: The details of the Warning are : Then I got the inspiration from https://stackoverflow.c
阅读全文
摘要:从昨天晚上开始安装xgboost,经历了各种稀奇古怪的错误,终于现在程序可以跑起来了。整个过程对python编译环境,路径设置,package安装方法有了一定了解,当然还有一些疑惑,所以姑且做个记录。 系统:Mac OS Mojave 10.14 IDE:Anaconda (严格来讲,Anacond
阅读全文

浙公网安备 33010602011771号