can't run ipython on cmd
Question:
I successfully installed ipython via pip. I wanted then to use it by launching it through windows 10 command prompt but am getting the following error
'ipython' is not recognized as an internal or external command,
operable program or batch file.
I have gone through many questions on stackoverflow but cannot get a relevant solution.
I tried pip install ipython
to confirm the ipython is installed and following on the instruction on my tutorial, i typed ipython
on cmd to launch the program and it has never worked. This is slowing down my learning, please help!
Answers:
Search in your machine the ipython application (directory in which it is installled) and the add the path to PATH environment variables.
For example in my case location was C:UsersDELLAppDataLocalProgramsPythonPython37Scripts
Add this path to PATH environment variable (see here) and your problem is solved.
Found the solution: run python -m IPython
(case sensitive).
To find that out, I ran pip show ipython
and it showed me some info, including the path of the module (for me: c:usersmathieuresappdatalocalpackagespythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0localcachelocal-packagespython39site-packages
). In there, a folder named IPython!
for first uninstall ipython python -m pip uninstall ipython
then install ipython with code python -m pip install ipython
when finished type ipython to run.
I had the same problem, and what i simply did is uninstall it using pip uninstall ipython
and then reinstall it using pip install ipython
like the same as what Ali vatankhah did but without adding python -m
in the command.
just do this:
python -m IPython (be aware, case sensitive).
I successfully installed ipython via pip. I wanted then to use it by launching it through windows 10 command prompt but am getting the following error
'ipython' is not recognized as an internal or external command,
operable program or batch file.
I have gone through many questions on stackoverflow but cannot get a relevant solution.
I tried pip install ipython
to confirm the ipython is installed and following on the instruction on my tutorial, i typed ipython
on cmd to launch the program and it has never worked. This is slowing down my learning, please help!
Search in your machine the ipython application (directory in which it is installled) and the add the path to PATH environment variables.
For example in my case location was C:UsersDELLAppDataLocalProgramsPythonPython37Scripts
Add this path to PATH environment variable (see here) and your problem is solved.
Found the solution: run python -m IPython
(case sensitive).
To find that out, I ran pip show ipython
and it showed me some info, including the path of the module (for me: c:usersmathieuresappdatalocalpackagespythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0localcachelocal-packagespython39site-packages
). In there, a folder named IPython!
for first uninstall ipython python -m pip uninstall ipython
then install ipython with code python -m pip install ipython
when finished type ipython to run.
I had the same problem, and what i simply did is uninstall it using pip uninstall ipython
and then reinstall it using pip install ipython
like the same as what Ali vatankhah did but without adding python -m
in the command.
just do this:
python -m IPython (be aware, case sensitive).