alibaba/MNN

pip install <.whl file> installs dist_info but doesn't actually install the package

jasseeeem opened this issue · 1 comments

Platform

Linux

Compiling Method

cd /path/to/MNN
./schema/generate.sh
mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j4
cd ../pymnn/pip_package && python3 build_deps.py && python3 setup.py install

Logs

Problem

Location present in pip show MNN: /home/ubuntu/mpallikk/weapon-detection/venv/lib/python3.10/site-packages/MNN-2.9.2-py3.10-linux-x86_64.egg

Listing files in the above directory only shows only the .egg file (MNN-2.9.2-py3.10-linux-x86_64.egg) and not the actual library.

I tried creating a .whl file and pip installing the .whl file, but, only the metadata for the library (MNN.dist-info) was present in the above directory and not the actual library.

As a result pip freeze shows MNN in the output, but unable to import the library in Python.

>>> pip freeze | grep MNN
MNN==2.9.2

>>> python3 -c "import MNN"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'MNN'

Can someone please help me fix this problem?