httpimport
httpimport copied to clipboard
Importing libraries with different installation name
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?
What is the profile config you're using?
requirements: opencv-python
project-names: cv2 : opencv-python
So that would be:
[pypi]
requirements:
opencv-python
project-names:
cv2: opencv-python
Is that right?
yes
Are you using the profile name as in pypi_repo("...", profile="pypi")?
Also, what version are you using?