knowhere icon indicating copy to clipboard operation
knowhere copied to clipboard

pip3 install pyknowhere.xx.whl, but "import pyknowhere" Error: ModuleNotFoundError: No module named 'pyknowhere'

Open zjx1230 opened this issue 9 months ago • 7 comments

Hello, Everyone! I want to use the package pyknowhere. I followed github's guide and successfully compiled the package, and after the installation was successful, it still prompted that the python package could not be found, what is going on? The installed package only has the directory pyknowhere-0.0.0.dist-info and no directory pyknowhere Here are the details:

(z00xxxxxxx) [root@node57 python]# pip3 install ./dist/pyknowhere-0.0.0-cp310-cp310-linux_x86_64.whl Looking in indexes: http://mirrors.tools.huawei.com/pypi/simple Processing ./dist/pyknowhere-0.0.0-cp310-cp310-linux_x86_64.whl Installing collected packages: pyknowhere Successfully installed pyknowhere-0.0.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv

(z00xxxxxxx) [root@node57 python]# python Python 3.10.12 (main, Jul 5 2023, 18:54:27) [GCC 11.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. import pyknowhere Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'pyknowhere' exit()

(z00xxxxxxx) [root@node57 python]# ls /root/miniconda3/envs/z00878108/lib /python3.10/site-packages/ | grep knowhere* knowhere knowhere-1.0.0.dist-info pyknowhere-0.0.0.dist-info

OS: CentOS 7

zjx1230 avatar May 06 '24 12:05 zjx1230