nok / sklearn-porter

Transpile trained scikit-learn estimators to C, Java, JavaScript and others.
BSD 3-Clause "New" or "Revised" License
1.28k stars 170 forks source link

requirements.txt file not found #44

Closed claudiocc1 closed 5 years ago

claudiocc1 commented 5 years ago

Hi

the package installed with no errors using pip3.

I get the following error when importing. Using python 3.7.2 on MacOS.

Thanks

C.

$ python3 Python 3.7.2 (default, Jan 13 2019, 12:51:54) [Clang 9.0.0 (clang-900.0.39.2)] on darwin Type "help", "copyright", "credits" or "license" for more information.

from sklearn_porter import Porter Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.7/site-packages/sklearn_porter/init.py", line 42, in meta = _load_meta(package) File "/usr/local/lib/python3.7/site-packages/sklearn_porter/init.py", line 26, in _load_meta reqs = open(req_path, 'r').read().strip().split('\n') FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.7/site-packages/sklearn_porter/../requirements.txt'

nok commented 5 years ago

Thanks @claudiocc1 , now it should works. Please try it again and reinstall the package with:

pip uninstall -y sklearn-porter && pip install sklearn-porter==0.7.2