- 代码跳转. 如果不能跳转, 可能需要在.vscode/setting.json中加实际的代码路径,比如
"python.analysis.extraPaths": ["code"],
- tensorflow 1.15.0前后的版本,无法代码提示,解决办法为
# cd ~/.local/lib/python3.7/virtual-site-packages/ # ln -s ${tf_env_path}/lib/python3.7/site-packages/tensorflow_core tensorflow # 参考 https://github.com/tensorflow/tensorflow/issues/32982#issuecomment-545414061 "python.analysis.extraPaths": [ "/Users/keke.zhaokk/.local/lib/python3.7/virtual-site-packages", "code" ]
- 为了写tensorflow 有更多提示, 建议安装插件 微软的python, 以及 Visual Studio IntelliCode