Every time I create a new venv on python and attach it as a kernel on a notebook, it just stays connecting forever. After following their "fix" (https://github.com/microsoft/vscode-jupyter/issues/17035) I create a new venv but when I try to import os to install packages it gives me this error attached as screenshot.
The log says:
17:48:01.317 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.320 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.367 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: Jupyter cannot be started. Error attempting to locate Jupyter: Running cells with '.env (Python 3.12.7)' requires the notebook and jupyter package.
> at Ty.startServerImpl (~\.vscode\extensions\ms-toolsai.jupyter-2025.8.2025082701\dist\extension.node.js:278:10478)
17:48:01.367 [warn] Kernel Error, context = start Error: Jupyter cannot be started. Error attempting to locate Jupyter: Running cells with '.env (Python 3.12.7)' requires the notebook and jupyter package.
> at Ty.startServerImpl (~\.vscode\extensions\ms-toolsai.jupyter-2025.8.2025082701\dist\extension.node.js:278:10478)
17:48:01.375 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.379 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import jupyter;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:01.382 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import notebook;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:02.264 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -m pip list
17:48:02.265 [error] Failed to parse env file ~\Desktop\PythonNotebooks\.env [Error: EISDIR: illegal operation on a directory, read] {
errno: -4068,
code: 'EISDIR',
syscall: 'read'
}
17:48:02.268 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -c "import pip;print('6af208d0-cb9c-427f-b937-ff563e17efdf')"
17:48:02.328 [info] Process Execution: ~\Desktop\PythonNotebooks\.env\Scripts\python.exe -m pip install -U jupyter jupyter-client<8 pyzmq<25
17:48:10.772 [error] Error in notebook cell execution
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
17:48:10.772 [error] Error in execution (get message for cell)
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.```