In the first two lines, I printed the current executable path, but it didn't load the correct path C:\pyvenv\ai\Scripts\python.exe
.
I find this method to be easier to manage and understand than the ipykernel install
method because you can just delete your virtual environment when you're done.
C:\pyvenv\ai\Scripts\python.exe -m pip install jupyterlab
In VSCode, open your command palette using CTRL+SHIFT+P (⌘+SHIFT+P on Mac) and select the "Jupyter: Select interpreter to start Jupyter server"
command
Select the Python interpreter you just used to install jupyter from the list of kernels (I had to restart VSCode to get the environment to show up in that list).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With