编程悟道

Results 17 comments of 编程悟道

``` import matplotlib matplotlib.use('TkAgg') ```

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib? If you have homebrew openssl and pyenv installed, you may need to tell the compiler where the openssl...

zlib is keg-only, which means it was not symlinked into` /usr/local,` because macOS already provides this software and installing another version in parallel can cause all kinds of trouble. For...

如果需要换源 ,需要删除之前的配置文件和.env文件夹,重新初始化

上述方法莫名失败了,这种可以: ``` WARNING: The Python sqlite3 extension was not compiled. Missing the SQLite3 lib? zipimport.ZipImportError: can't decompress data; zlib not available ``` 配置临时变量: ``` export LDFLAGS="-L/usr/local/opt/zlib/lib -L/usr/local/opt/sqlite/lib" export CPPFLAGS="-I/usr/local/opt/zlib/include -I/usr/local/opt/sqlite/include"...

为了兼容 `pyenv` 环境下的代码兼容性问题: 我添加了如下代码 ```python import matplotlib matplotlib.use('TkAgg') ```

解决方案 :(替换渲染引擎) 1. 安装PyQt5 `pip3 install PyQt5` 2. 设置 `backend`: ` backend: Qt4Agg` ```python echo "backend: Qt4Agg" >> ~/.matplotlib/matplotlibrc ``` 或者 ```python vim ~/.matplotlib/matplotlibrc ``` 添加: ``` backend: Qt4Agg ```

新的渲染图: ![image](https://user-images.githubusercontent.com/8823477/54470112-8a96e480-47dd-11e9-9144-f5cb86ca11c0.png)

``` When I use mongodb, it will throw this error, use redis will not happen like this ```

下面是生成的目录结构--2019年04月23日 ``` . ├── 003 华为研发模式演讲.pdf ├── 01 25份全行业薪酬报告(2017-2018) │   ├── 2018全新薪酬报告&分析.pdf │   ├── desktop.ini │   ├── 《2017-2018中国薪资增长报告》美世.pdf │   ├── 《2017-2018年重点行业薪酬趋势指南》中智.pdf │   ├── 《2017-2018华中地区薪酬管理白皮书》众达朴信.pdf │   ├── 《2018KELLY中国区薪酬指南》.pdf │   ├── 《2018华德士中国薪资调查》.pdf...