4/1/2023 0 Comments Python inotebook install![]() VSCode stores the states for all the workspaces, in its global config folder under /Code/User/workspaceStorage/. I'm not quite sure, what was the issue though, but somehow the state stored for the exact workspace made Python extension crash. NB: if you want jupyter note to work for all users using your computer, you need to configure pip to download installs to a directory that is not in your "C:\Users" folder, and add a System variable to it.įor me, another solution helped. NB: if you are not constrained by having an existing python version on your computer and not wanting to install more, you can also use the Python Anaconda Distribution. It may also complain that it needs other modules, in which case you can use 'pip' to install it. Now run the scripts in the ipynb file and it should work. Add "C:\Users\AppData\Roaming\Python\Python38\Scripts" (or where the pip installs the scripts to to the PATH variable.įinally restart VSCode for the new environmental variable to be updated for VSCode.(it can't be System variables section because only you will have access to your own roaming folder) In the "User variables for " section, Edit "PATH" variable.Go to environmental variables (if you don't know how, here is some instructions: ).A confusion that costed me so many hours. If you are having similar issues, please try the above steps mentioned in the question.Īfter reading this article I realised that I had to map the scripts installed with pip as well, even if it is in my roaming directory. One thing to note is pip installs to my "C:/Users//appdata/Roaming/Python-38/" folder while my Python is installed in "C:\Program Files\Python38-32\". There was this comment about PYTHONPATH in this post but since the python directory is correctly referenced and python works from the command line, I did not investigate it further. Type >Python: Select Intepreter to start jupyter notebook serverīut I only had one version of Python installed on my computer, and doing this didn't make a difference. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |