天天看點

VScode以及jupyter中的一些問題VScode以及jupyter中的一些問題

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
}
           

繼續閱讀