I'm trying to run shell commands in the Jupyter notebook but it doesn't work
!which python
It shows an error
'which' is not recognized as an internal or external command,
operable program or batch file.
I'm trying to run shell commands in the Jupyter notebook but it doesn't work
!which python
It shows an error
'which' is not recognized as an internal or external command,
operable program or batch file.
If you are working on windows based system:
!where python
Else:
%%bash
which python
References:
Can you run python3 --version. I am assuming you are using Windows. Open your command line and run the command too. If you still get the same response, it means you did not add python to path while installing. Did you install using Anaconda?
If you want to add python to path, just simply follow this link. It's self-explanatory. Let me know in the comment section if you still have issues.