Note: If You are on Linux, You need to type source activate env_name. Where env_name is the wanted environment (for example, You could type activate ipykernel_py2 if You wanted to access the first of the two environments listed above). You will get something like this: ipykernel_py2 D:\Anaconda\envs\ipykernel_py2Īfter that, activate the environment that is complaining for the missing cv2 and run the pip install opencv-python command. Now, after verifying the installation, you are ready to. Once we have installed Tkinter in Jupyter notebook, then we can verify the installation by typing the following command. We can run all the standard commands of Tkinter in Jupyter notebook. To list all of Your conda environments, run this command: conda info -envs Tkinter can be installed on Jupyter notebook as well, by using the command pip install tkinter. ![]() ![]() I didn't have the openCV installation in my Python3 kernel, so I installed it by activating the specific environment and running this in the command prompt: pip install opencv-python xcode-select -install xcode-select: error: command line tools are already installed, use 'Software Update' to install updates Based on the SO answer for How to update Xcode from command line - the easiest way to do this would be to remove the old version of the tools and reinstall the new one. If it is overlooking the install location, append it to your python path. Is the cv2 module located in any of those directories? If not your path is looking in the wrong place. Is your python path looking in the right place? Check where python is looking for the module.
0 Comments
Leave a Reply. |