When I installed Jupyter lab with pip and ran jupyter lab at the command prompt, I got the following error!
command prompt
C:\Users\<username>>jupyter lab
'jupyter lab'Is an internal or external command,
It is not recognized as an operable program or batch file.
The direct cause was that when I installed jupyterlab with pip, it was installed in association with an unintended version of Python. ⇒ Which is [pip install jupyter lab] or [python -m pip install jupyter lab]? problem
As a side factor, different versions of Python and pip were saved here and there, and the PATH setting was dirty. ⇒ When I ran Python at the command prompt, I faced a problem where I didn't know which version of Python was run.
As a solution to these causes, I installed jupyter lab according to the following procedure.
I referred to the following site and did the work. https://gammasoft.jp/support/uninstall-python-completely-on-windows/
The flow of this work and supplements for each work are described below.
Uninstall the software No supplement
Manually delete the remaining folders Note) If you have several different versions of Python saved here and there, search for the following keywords in File Explorer and manually delete the found folder (both parents and children!). Search word: python, pip
Delete environment variables I deleted the environment variables by referring to the following site. ★★ Caution ★★) After installing Python many times, the environment variable settings got dirty and I had a hard time cleaning. To make sure it is deleted, delete both the user environment variable and the system environment variable. Also, restart your PC to ensure that the settings are updated. To check the update of the setting variable, it is more reliable to enter PATH at the command prompt rather than looking at the system properties.
How to delete environment variables: ttps: //www.javadrive.jp/python/install/index3.html
Python installation Install according to the following site. Python installation: https://www.javadrive.jp/python/install/index1.html At this time, by checking "Add To Python PATH", the environment variables will be set automatically. Also, it is personally recommended to save the Python installation destination in a shallow location.
pip upgrade
prompt
#Normal
pip install pip --upgrade
#If you have multiple pips and you don't know which pip is being called
python -m pip install --upgrade pip
#If you want to specify the location of the pip you want to execute
cd <Full path of pip destination folder> -> pip install pip -upgrade
Go to the explanation page of jupyter lab installation method https://qiita.com/kirikei/items/a1639954ce5ccaf7ac3c
Recommended Posts