![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MACOS
追寻者01
计算机硕士
展开
-
MAC电脑使用jupyter notebook
1. 安装jupyter notebook安装命令:pip install jupyter notebook2. 使用jupyter nontebook启动命令:jupyter notebook注意:启动的时候在什么目录启动的打开显示的就是什么目录。原创 2021-01-06 15:37:40 · 597 阅读 · 0 评论 -
MACOS的Python虚拟环境使用笔记
一、安装python虚拟环境使用pip安装两个软件pip install virtualenvpip install virtualenvwrapper配置~/.bash_profilevim ~/.bash_profile添加配置项根据自己的python环境:# python_envexport WORKON_HOME=$HOME/.virtualenvsexport VIRTUALENVWRAPPER_SCRIPT=/Library/Frameworks/Python.fr原创 2020-12-12 09:25:02 · 225 阅读 · 1 评论 -
MAC系统使用Matplotlib显示中文问题亲测有效
1. 下载SimHei.ttf资源:下载链接2. 放到matplotlib的字体文件夹mpl-data/fonts/ttf/下print (matplotlib.matplotlib_fname())会得到mpl-data的路径,进一步再找mpl-data/fonts/ttf/的路径3. 修改配置文件:使用vim打开mpl-data/matplotlibrc删除font.family和font.sans-serif两行前的#不删没有效果,并在font.sans-serif后添加SimHe原创 2020-12-11 21:15:07 · 331 阅读 · 1 评论