||
(一)Pip更新问题解决
报错内容:
(1)ValueError: Unable to find resource t64.exe in package pip._vendor.distlib
解决方案:
①卸载setuptools:
python -m pip uninstall pip setuptools
②重新安装setuptools
pip install --upgrade setuptools
(2)ERROR: Exception:
Traceback (most recent call last):
File "C:\Users\AppData\Roaming\Python\Python36\site-packages\pip\_internal\cli\base_command.py", line 188, in _main
status = self.run(options, args)
解决方案:
python -m pip install -U --force-reinstall pip
(二)Jupyter实现所选变量高亮显示
使用Pycharm或VS或Anaconda等IDE时,有所选单词高亮功能,对于知晓变量上下文有很大作用。Jupyter原生不支持,可以通过扩展插件实现该功能,效果如下:
1)安装插件(Anaconda Prompt中逐条执行命令)
pip install jupyter_contrib_nbextensions
pip install jupyter_nbextensions_configurator
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
2)配置选项
(三)分区注释
# In[ ]: ,效果展示:
【参考】
https://blog.csdn.net/qm5132/article/details/82804840
点滴分享,福泽你我!Add oil!
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-24 14:59
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社