VScode以及jupyter中的一些问题
如果VScode中的jupyter无法找到自己的虚拟环境,检查下想要jupyter的kernel是否安装,具体如下
pip install ipykernel -i https://pypi.tuna.tsinghua.edu.cn/simple
然后建立jupyter和这个内核的连接
python -m ipykernel install --user --name py36 --display-name py36
VScode中出现torch.module找不到就在设置的脚本中设置为:
{
"window.zoomLevel": 1,
"open-in-browser.default": "chrome",
"python.pythonPath":"/home/wl/anaconda3/bin/python3.6",
"python.linting.pylintArgs": ["--generate-members"],
"terminal.integrated.inheritEnv": false
}