httpimport icon indicating copy to clipboard operation
httpimport copied to clipboard

Importing libraries with different installation name

Open Suryah07 opened this issue 1 year ago • 5 comments

When we want to import cv2 library It shows module not found error. I know that we need to install it by opencv-python but we can't use the statement "import opencv-python". How to import the libraries that have a different name in usage and installation. Which one to use. If we can set it in the profile settings how to do it?

Suryah07 avatar Dec 10 '23 16:12 Suryah07

What is the profile config you're using?

rkbennett avatar Jul 28 '24 18:07 rkbennett

requirements: opencv-python

project-names: cv2 : opencv-python

Suryah07 avatar Jul 29 '24 08:07 Suryah07

So that would be:

[pypi]
requirements:
  opencv-python

project-names:
  cv2: opencv-python

Is that right?

rkbennett avatar Jul 29 '24 13:07 rkbennett

yes

Suryah07 avatar Sep 24 '24 14:09 Suryah07

Are you using the profile name as in pypi_repo("...", profile="pypi")? Also, what version are you using?

operatorequals avatar Sep 30 '24 10:09 operatorequals