Install error in simpleCV for Python - python

I just used SimpleCV1.3 superpack to install. I can use Python shell and import SimpleCV. However, when I want to open the SimpleCV Shell, it showed the error like below.
I saw the Shell.py in C:\Python27\Lib\site-packages\SimpleCV\Shell/.
And found "from IPython.terminal.embed import InteractiveShellEmbed"
I guess that it's a version error. Different IPython version may not have define_magic. How can I solve this problem?

Related

VSCode - import errors and interpreter errors

I have several imports in my current code:
from flask import Flask
import datetime as dt
import numpy as np
import pandas as pd
When I run this in VSCODE I am getting this error:
However, running this in jupyter notebook has no problems. When I looked online it said to use python interpreter but when I go to do that I get this error:
And another error:
Anaconda prompt says modules/packages are installed but when I run pip install in default windows terminal it says pip has no module:
Delete and reinstall Python extensions according to the same problem on github.
The second problem is related to the location of your Python interpreter. You need to choose the correct interpreter. I still recommend using one Python version in one environment. You can use other Python versions in virtual environment, so it won't lead to confusion.

Python Can't Find Wolframalpha Module

I'm tyring to import wolfamalpha into my code but it gives a error saying:
ModuleNotFoundError: No module named 'wolframalpha'
I tried installing it with pip install wolframalpha, but it still doesn't work.
Here is my code:
import wolframalpha
client = wolframalpha.Client('*************')
When you run your python file, are you sure that you are using the correct python interpreter that you performed the pip install wolframalpha to? It sounds like you may have multiple versions of python on your machine and there is a mismatch. If you are using VSCode, it is easy to see which interpreter is running on the bottom of the screen, which may help you debug the issue.

cv2 and opencv Python troubleshooting install

I'm totally new to python. Currently I'm trying to install a packaged named cv2/openvc. Having migrated from Rstudio I'm trying to use rodeo in the same way for python. Python definitely seems less user friendly.
When I try to import the package from rodeo and I get following error:
However, when I run python from the windows cmd line and all works fine, I can even import cv2 and check the version.
Why is this and how can I fix it?
I can say the best thing you can do is to really know which python installation is being used by Rodeo. However, if you are in hurry you can install cv2 within the python interpreter by this code:
import sys
import subprocess
subprocess.call([sys.executable, "-m", "pip", "install", "opencv-python"])

Skimage version 0.13.1 shows import error while importing "io" module

I am using python version 3.6.2 and working on image processing. My problem is when I run python through cmd it imports io module of skimage without error but when I import it through python Idle it shows module error that no module name io. Can anyone please enlighten me why is this happening? For more understanding i'm putting screenshots of both the cases.
Through cmd:
Through Python Idle:
This problem got solved by reinstalling each and every supporting package.

cannot import numpy in idle (2.7) after anaconda installation

I've installed numpy from the following link http://www.scipy.org/install.html
After installation the paths are defined (verified with which -a python)
/Users/user_name/Documents/anaconda/bin/python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/usr/bin/python
/usr/local/bin/python
when open idle 2.7 and try to import numpy I get the following error message
ImportError: No module named numpy
any ideas what to do?
So you have several python installations going; which one is idle using?
This should get you pointed in the correct direction for finding modules:
http://docs.python.org/release/2.7.5/tutorial/modules.html#the-module-search-path
(Tweak the version number in that URL as appropriate.)
If that doesn't help, then the list of Related questions, to the right, currently has this as the first hit, and it looks useful too.

Categories

Resources