Home > Software engineering >  zsh:1: command not found: python
zsh:1: command not found: python

Time:12-29

I am new to using Jupyter and i have been using kaggle and google colab for data science but colab has gpu limitations which is why i switched to jupyter

i have installed python long ago so all i did was check for pip upgrade and then performed following commands:

pip3 install jupyter 
jupyter notebook (to open jupyter)

i was able to open jupyter and was executning the cell blocks until i came to this code cell

!python -m spacy init fill-config /Users/atharvasankhe/Files/resumeparse/data/training/base_config.cfg config.cfg

and i got this error

zsh:1: command not found: python

what i understand from this is error is that python cant be found but i use python regularly on different IDE Also when i run !python i can see the python version

I tried using jupyterlab but it was no different result that what i was facing already

CodePudding user response:

Do you have v3.X of python installed? If so you need to run

!python3 -m spacy init fill-config /Users/atharvasankhe/Files/resumeparse/data/training/base_config.cfg config.cfg

(note the python3, not python).

Since this question is tagged as python 3.x, this should solve your problem.

  • Related