I keep seeing this message.
An error ocurred while starting the kernel
Traceback (most recent call last):
File "C:\Users\Excel\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\Excel\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 11, in
start.main()
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 279, in main
import_spydercustomize()
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 39, in import_spydercustomize
import spydercustomize
File "C:\Users\Excel\Anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 5, in
from utilities import visualize_classifier
ModuleNotFoundError: No module named 'utilities'
I tried the following . . .
Try typing these 3 lines from the anaconda command prompt:
conda create -n spyder python=3.7 spyder
activate spyder
spyder
Also . . .
pip install --upgrade spyder
Unfortunately, nothing has worked thus far. Is there some kind of master reset to force this to startup correctly? Thanks a lot.
Try uninstalling spyder and spyder-kernels and run this to reinstall.
conda install spyder-kernels
Related
Whenever I type 'pip' into commandline I get:
Traceback (most recent call last):
File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python39\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "C:\Python39\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
I already tried to update 'pip' with using c:\python39\python.exe -m pip install --upgrade pip but there I get:
c:\python39\python.exe: No module named pip
If I replace 'pip' with 'pip3' the same thing happens.
Here is a screenshot of the path variable in system environment variables which shows that pip and python are in the path variable.
Does anyone have ideas for me to fix this error so I can continue programming my python programs.
you can try pip3 instead of pip
I updated Python to version 4.2 with Anaconda Navigator. I am kind of new to programming, but I have an error in the console. It says "An error ocurred while starting the kernel" and than the following:
Traceback (most recent call last):
File "C:\Users\anass\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\anass\Anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\anass\Anaconda3\lib\site‑packages\spyder_kernels\console\__main__.py", line 23, in
start.main()
File "C:\Users\anass\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 253, in main
import_spydercustomize()
File "C:\Users\anass\Anaconda3\lib\site‑packages\spyder_kernels\console\start.py", line 43, in import_spydercustomize
import spydercustomize
File "C:\Users\anass\Anaconda3\lib\site‑packages\spyder_kernels\customize\spydercustomize.py", line 31, in
from spyder_kernels.customize.spyderpdb import SpyderPdb
File "C:\Users\anass\Anaconda3\lib\site‑packages\spyder_kernels\customize\spyderpdb.py", line 23, in
from IPython.core.inputtransformer2 import TransformerManager
ModuleNotFoundError: No module named 'IPython.core.inputtransformer2'
What should I do to fix this?
When I open Spyder, it says (Python 3.6). Is that maybe part of the problem? Thanks in advance!
(Spyder maintainer here) Please open the Anaconda Prompt and run there
conda update anaconda
conda install ipython=7.6.0
That should fix your problem.
I tried installing requests with "pip install requests" but it shows this
Traceback (most recent call last):
File "c:\users\me\appdata\local\programs\python\python37-32\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\users\me\appdata\local\programs\python\python37-32\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Users\me\AppData\Local\Programs\Python\Python37-32\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable
I am on windows 10
That may happens because you don't have proper set PATH of pip in your current machine, instead of use pip install ... you need to specify the python (may vary depending of your python version python3 or python) path and add the -m flag to specify the module that you want to use. in this case pip
try
python -m pip install requests
I'm running Windows 10 with Python 3.7 and Microsoft Visual Studio Code. I want to install some packages I've downloaded (pysimplegui and psycopg2) but every time I try to install I get an error like this in cmd. Even when I type the pip list command
Traceback (most recent call last):
File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\program files\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\Python37\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable
The files are in my programming folder and I've copied them also on the scripts folder but it's not working. Can you please help me ? thanks in advannce
Try using this code
python3 -m pip install library_you_want
I used Anaconda to install Python 3.4 under Windows 8. At first, everything is fine, and later the system told me that I need to use pip install pip --upgrade to update pip. After I did this, I got some error information on the screen and then pip can no longer be used.
Now when I try to install some packages using pip, there would be some error information:
C:\Users\E440>pip
Traceback (most recent call last):
File "E:\Program Files\Annaconda\lib\runpy.py", line 170, in _run_module_as_ma
in
"__main__", mod_spec)
File "E:\Program Files\Annaconda\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "E:\Program Files\Annaconda\Scripts\pip.exe\__main__.py", line 5, in <mod
ule>
ImportError: No module named 'pip'
I tried several methods, but still can't fix it. Any suggestions?
You are trying to import pip from your python program; as pip is a linux command, not a python module, this will fail to import the correct program:
import pip
Instead, call it from your bash (linux interpreter):
bash-3.2$ pip install module