Estou seguindo os passos do video, mas quando peço para instalar os requisitos do arquivo .txt, ele trava no scipy. Alguem saberia me ajudar? Estou anexando o erro que gera:
:~/ml-api-alura$ pip3 install -r requirements.txt
Collecting click==7.1.1
Using cached click-7.1.1-py2.py3-none-any.whl (82 kB)
Collecting Flask==1.1.1
Using cached Flask-1.1.1-py2.py3-none-any.whl (94 kB)
Collecting Flask-BasicAuth==0.2.0
Using cached Flask-BasicAuth-0.2.0.tar.gz (16 kB)
Collecting itsdangerous==1.1.0
Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting Jinja2==2.11.1
Using cached Jinja2-2.11.1-py2.py3-none-any.whl (126 kB)
Collecting joblib==0.14.1
Using cached joblib-0.14.1-py2.py3-none-any.whl (294 kB)
Collecting MarkupSafe==1.1.1
Using cached MarkupSafe-1.1.1-cp39-cp39-manylinux2010_x86_64.whl (32 kB)
Collecting nltk==3.4.5
Using cached nltk-3.4.5.zip (1.5 MB)
Requirement already satisfied: numpy==1.19.5 in ./venv/lib/python3.9/site-packages (from -r requirements.txt (line 9)) (1.19.5)
Collecting scikit-learn==0.22.1
Using cached scikit-learn-0.22.1.tar.gz (6.9 MB)
**Collecting scipy==1.4.1**
Using cached scipy-1.4.1.tar.gz (24.6 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:
command: /home/mkfalaschy/ml-api-alura/venv/bin/python3 /tmp/tmpqgtdumms_in_process.py prepare_metadata_for_build_wheel /tmp/tmptfmlng8q
cwd: /tmp/pip-install-31eq1lqp/scipy_f67942af8cea471db53cad8237cabf76
Complete output (167 lines):
<string>:418: UserWarning: Unrecognized setuptools command ('dist_info --output-dir /tmp/pip-modern-metadata-5mro94w1 --keep-egg-info'), proceeding with generating Cython sources and expanding templates
Running from scipy source directory.
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/home/mkfalaschy/ml-api-alura/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_lapack_info:
customize UnixCCompiler
libraries openblas not found in ['/home/mkfalaschy/ml-api-alura/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
openblas_clapack_info:
customize UnixCCompiler
libraries openblas,lapack not found in ['/home/mkfalaschy/ml-api-alura/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
flame_info:
customize UnixCCompiler
libraries flame not found in ['/home/mkfalaschy/ml-api-alura/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
lapack_info:
customize UnixCCompiler
libraries lapack not found in ['/home/mkfalaschy/ml-api-alura/venv/lib', '/usr/local/lib', '/usr/lib64', '/usr/lib', '/usr/lib/x86_64-linux-gnu']
NOT AVAILABLE
Traceback (most recent call last):
File "/tmp/tmpqgtdumms_in_process.py", line 280, in <module>
main()
File "/tmp/tmpqgtdumms_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/tmp/tmpqgtdumms_in_process.py", line 133, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
File "/tmp/pip-build-env-vfvfpqfj/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 380, in prepare_metadata_for_build_wheel
self.run_setup()
File "/tmp/pip-build-env-vfvfpqfj/overlay/lib/python3.9/site-packages/numpy/distutils/core.py", line 137, in setup
config = configuration()
File "<string>", line 435, in configuration
numpy.distutils.system_info.NotFoundError: No lapack/blas resources found.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/04/ab/e2eb3e3f90b9363040a3d885ccc5c79fe20c5b8a3caa8fe3bf47ff653260/scipy-1.4.1.tar.gz#sha256=dee1bbf3a6c8f73b6b218cb28eed8dd13347ea2f87d572ce19b289d6fd3fbc59 (from https://pypi.org/simple/scipy/) (requires-python:>=3.5). Command errored out with exit status 1: /home/mkfalaschy/ml-api-alura/venv/bin/python3 /tmp/tmpqgtdumms_in_process.py prepare_metadata_for_build_wheel /tmp/tmptfmlng8q Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement scipy==1.4.1
ERROR: No matching distribution found for scipy==1.4.1