error: the following arguments are required: -i/--image - image

I have installed opencv on my windows machine using python 3.10 without any issues, using:
pip install opencv-python
but when I try to import cv2 I get the following error:
usage: [-h] -i IMAGE
: error: the following arguments are required: -i/--image
I tried to import cv2 but got error

Related

Canopy editor: error no module named pyspark

From canopy editor I tried import pyspark and it gives me error no module named pyspark in C:\users\user\appdata\local\temp\tmparhn5_.py
I tried pip install pyspark and the error is invalid syntax
then I tried import findspark and error is no module named findspark.
How resolve it?

ImportError: cannot import name PyFontify

I am installing django-easy-pdf, xhtml2pdf and reportlab using pip I installed the following in a virtual environment.:
$ pip install django-easy-pdf
$ pip install "xhtml2pdf>=0.0.6" "reportlab>=2.7,<3"
But after the testing, there is an import error that has following message:
from reportlab.lib import PyFontify
ImportError: cannot import name PyFontify
Oh, I nearly forgot, when I'm installing the reportlab, this came up in the middle of the setup:
running build_ext
building '_rl_accel' extension
error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat).
Get it from http://aka.ms/vcpython27
----------------------------------------
Rolling back uninstall of reportlab
I solved this by removing the packages and their dependencies and installing it again.

Python-docx installation error. Cannot import 'etree'

I am using using Pycharms to program using Python3.5. I tried to import docx module and I am getting the error shown in the picture. I am not able to do any pip install either. I get a fatal error shown in the second picture.

How to import Mlpy on IPython?

I am using IPyhton(py 3.4) notebook. I want to import mlpy module by typing import mlpy command. However I get the following error "No module named mlpy". I tried to install it by using "pip install" on the command prompt but this time I take the invalid syntax error. What should I need to do in order to install mlpy?

Error "matplotlib is not a package" on Mac problems

Getting the No module named 'matplotlib.pyplot'; matplotlib is not a package error when trying to run:
import matplotlib.pyplot
plt.plot([1,2,3,4],[4,7,8,12])
plt.show()
Im running python 3.3, and have installed the correct matplotlib, and six library. i have checked this by running pip list.
I have also tried running the file in terminal, and when i do this the error changes from matplotlib is not a module to no module named pyplot.

Resources