I know that people already did topics on similar question and most of them I've already read, but it still didn't solve my problem, so I hope I could find help here.
I'm new to Python and faced with the same problem of Kernel Error in Jupyter Notebook as it was described here:
Getting kernel error while trying to open Jupyter notebook or Spyder
I use Miniconda and python 3.9 already installed.
I've tried to implement advice that in that topic, but after I installed pywin32, I've faced with the problem of installing pywin32_postinstall. Every time I try to run it, in the output printed "PackagesNotFoundError: The following package are not available from current channels"
(Sorry, but I'm unable to provide complete piece of code, case I don't know how to cope from Anaconda PowerShell Promt)
I would be so much thankful if anyone could help me with this issue!
Related
System: MacOSX 10.15,
VSCode Version: 1.67.2,
Python Kernel Version: 3.8.13 (Conda base).
I created a new Jupyter notebook in my VSCode using command shortcut and selected the right python kernel showed above. The empty notebook page is well loaded and no error message occurred.
But when I typed and ran any code in the cell, this error message showed up below the cell.
Then I clicked the "log" link and the error log showed up and it was like this:
And hence I couldn't run any code in the notebook cell. Then I changed to another Python Kernel (3.9.12) of the same notebook, it showed the same error message:
Please give me a solution to overcome this bug.
Update: I tried to reinstall pyzmq to an older version in the canda base environment and it didn't change anything. Then I typed command jupyter --version and everything is well installed.
Update: I have searched on Github Issues of VSCode. There are two similar issues that are all caused by some extensions, one is called "Gitduck"(now renamed "duckly"), the other is "nur.Script". The link to these issues are here:
Cannot read property 'makeSettings' of undefined #834
Cannot read property 'makeSettings' of undefined #128458
But unfortunately, I never have installed any of these extensions in my VSCode. So it may be caused by a similar extension but I still don't know the name.
Finally, I use the command code --list-extensions to list all my installed extensions here, maybe helpful for filtering which extension is the bad guy:
Final Update: Today (05/31) I opened VSCode and tentatively created an empty Jupyter notebook, and this problem has gone away. I have done nothing, maybe VSCode's auto-update has solved this problem. Case closed.
You can try reinstalling the pyzmq module.
pip uninstall pyzmq
pip install pyzmq==19.0.2
Hope this helps you.
I am struggling with installing "IJulia" in Julia. I tried Pkg.add("IJulia") and .build("IJulia")
but there must be some problem going on with this part it keeps saying
"LoadError: Failed to precompile Parsers
[69de0a69-1ddd-5017-9359-2bf0b02dc9f0] to
C:\Users\박원정.julia\compiled\v1.4\Parsers\833b9_AFua3.ji."
It would be much appreciated if someone can help me with resolving this problem...
On the first run IJulia is installing Jupyter. Having bad luck this might fail.
Once you perform the already suggested deleting .julia\compiled, you can try installing Jupyter into your Julia manually (this is something I do when providing Jupyter installation instructions for large groups of people and is tested to work each time on many machines and environments):
using Pkg
pkg"add Conda"
using Conda
Conda.runconda(`install jupyter --yes`)
pkg"add IJulia"
pkg"precompile"
I have been trying to intall scikit-learn and pytorch using their respective commands given in the docs:
The commands for installing PyTorch are:
1) pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp37-cp37m-win_amd64.whl
2) pip3 install torchvision
The command for installing scikit-learn is:
pip install -U scikit-learn
Some background:
I am using Windows 8.1, Python 3.7.2. My pip is updated. I have also installed Anaconda for solving this using conda, but had zero luck!(Also, here I am running into 'conda' unrecognized error which is another story). Here are the paths my PATH variable holds.
PATH
C:\Users\satya\Anaconda3;
C:\Users\satya\Anaconda3\Library\mingw-w64\bin;
C:\Users\satya\Anaconda3\Library\usr\bin;
C:\Users\satya\Anaconda3\Library\bin;
C:\Users\satya\Anaconda3\Scripts;
C:\Users\satya\AppData\Local\Programs\Python\Python37\Scripts\;
C:\Users\satya\AppData\Local\Programs\Python\Python37\; C:\Users\satya\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7
The Actual Problem:
The same commands for installation given above work perfectly fine on my other Windows 10, but, for my Windows 8.1 it gives this error which has become a real PITA
Import Error: DLL load failed The specified module could not be found
When I import sklearn or import torch I get the exact same error. All the time.
Back Story:
I have searched almost all the related questions I could find on Stackoverflow and Github for 6+ hours to help me solve this problem. But, none of the answers have helped till now and some haven't had an "understandable" answer. Maybe, its just a small fix, but now, I am choosing to post a question on SO.
My Question Again:
Can someone please help out and try to explain what I am missing out here? I really want to fix this error for good(and want to be in a position to fix it if I encounter it again). An elaborate answer would really help understand easily.
Thank You!
Please check your python build number with the following command.
conda list python
Python 3.7.2 with build number h8c8aaf0_2 has a solved issue.
If this is the case, an update will do.
conda update python
I keep getting this error while trying to import pytorch in jupyter notebook
import torch
AttributeError: function 'AddDllDirectory' not found
this error occur only when I try installing pytorch in anaconda (I used both command to install pytorch pip and conda, I also tried installing only the cpu version and nothing changed, i still get the same error while trying to import it)
I searched the internet and found nothing remotely close to my problem.
is there's a way I can fix this error?
thanks in advance
I fixed the issue by installing the file (KB2533623) from
Here (for windows 7 users). this file apparently contains the missing "AddDllDirectory" function.
Posting this answe in case someone ran into the same problem.
I'm fairly new to programming. I am a student of Mathematics and one of my modules has python programming as part of it. I was told to download python 3.5 and, using cmd and pip, to download the following packages which I did:
matplotlib,
ipython,
notebook,
numpy,
scipy,
After downloading them I entered, in cmd, ipython notebook but an error message saying "The program can;t start because MSVCP140.dll is missing from your compute. Try reinstalling the program to fix this problem." I have tried to reinstall python and the aforementioned packages but the same message keeps popping up. What can I do to fix this?
Sorry if my post is in the wrong section of the forum, this is my first time on Stackexchange.