Open xipeng5 opened 2 years ago
Hi @xipeng5
I having a hard time figuring out what is the problem. Could you post your exact commands that you ran? Did you try to install scipy
?
Thanks!
Hi @xipeng5 I having a hard time figuring out what is the problem. Could you post your exact commands that you ran? Did you try to install
scipy
? Thanks!
pip3 install easyocr
Try installing scipy
directly and then reinstalling easyocr
.
Using cached https://pypi.doubanio.com/packages/26/b5/9330f004b9a3b2b6a31f59f46f1617ce9ca15c0e7fe64288c20385a05c9d/scipy-1.8.1.tar.gz (38.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [192 lines of output] setup.py:486: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /private/var/folders/4r/w25tp28n1yqd8gyhz6v9rw100000gn/T/pip-modern-metadata-38ved7ag'), proceeding with generating Cython sources and expanding templates warnings.warn("Unrecognized setuptools command ('{}'), proceeding with " Running from SciPy source directory. /private/var/folders/4r/w25tp28n1yqd8gyhz6v9rw100000gn/T/pip-install-ok66dx0c/scipy_39c77f1f98594ac184153cbf1395d6cf/scipy/linalg/_generate_pyx.py:674: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.dep_util import newer /private/var/folders/4r/w25tp28n1yqd8gyhz6v9rw100000gn/T/pip-install-ok66dx0c/scipy_39c77f1f98594ac184153cbf1395d6cf/scipy/special/_generate_pyx.py:1443: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.dep_util import newer Running scipy/linalg/_generate_pyx.py Running scipy/special/_generate_pyx.py Running scipy/stats/_generate_pyx.py Processing scipy/cluster/_vq.pyx Processing scipy/cluster/_optimal_leaf_ordering.pyx Processing scipy/cluster/_hierarchy.pyx Processing scipy/ndimage/src/_cytest.pyx Processing scipy/ndimage/src/_ni_label.pyx Processing scipy/linalg/cython_lapack.pyx Processing scipy/linalg/_matfuncs_sqrtm_triu.pyx Processing scipy/linalg/_cythonized_array_utils.pyx Processing scipy/linalg/_solve_toeplitz.pyx Processing scipy/linalg/cython_blas.pyx Processing scipy/linalg/_decomp_update.pyx.in Processing scipy/optimize/_group_columns.pyx Processing scipy/optimize/_bglu_dense.pyx Processing scipy/optimize/_trlib/_trlib.pyx Processing scipy/optimize/_highs/cython/src/_highs_constants.pyx Processing scipy/optimize/_highs/cython/src/_highs_wrapper.pyx Processing scipy/optimize/_lsq/givens_elimination.pyx Processing scipy/optimize/cython_optimize/_zeros.pyx.in Processing scipy/optimize/tnc/_moduleTNC.pyx Processing scipy/io/matlab/_streams.pyx Processing scipy/io/matlab/_mio_utils.pyx Processing scipy/io/matlab/_mio5_utils.pyx Processing scipy/_lib/_ccallback_c.pyx Processing scipy/_lib/_test_deprecation_def.pyx Processing scipy/_lib/_test_deprecation_call.pyx Processing scipy/_lib/messagestream.pyx Processing scipy/special/_ufuncs_cxx.pyx Processing scipy/special/cython_special.pyx Processing scipy/special/_ellip_harm_2.pyx Processing scipy/special/_comb.pyx Processing scipy/special/_test_round.pyx Processing scipy/special/_ufuncs.pyx Processing scipy/fftpack/convolve.pyx Processing scipy/interpolate/interpnd.pyx Processing scipy/interpolate/_bspl.pyx Processing scipy/interpolate/_ppoly.pyx Processing scipy/sparse/_csparsetools.pyx.in Processing scipy/sparse/csgraph/_shortest_path.pyx Processing scipy/sparse/csgraph/_traversal.pyx Processing scipy/sparse/csgraph/_flow.pyx Processing scipy/sparse/csgraph/_tools.pyx Processing scipy/sparse/csgraph/_matching.pyx Processing scipy/sparse/csgraph/_reordering.pyx Processing scipy/sparse/csgraph/_min_spanning_tree.pyx Processing scipy/spatial/_qhull.pyx Processing scipy/spatial/_ckdtree.pyx Processing scipy/spatial/_voronoi.pyx Processing scipy/spatial/_hausdorff.pyx Processing scipy/spatial/transform/_rotation.pyx Processing scipy/signal/_max_len_seq_inner.pyx Processing scipy/signal/_peak_finding_utils.pyx Processing scipy/signal/_upfirdn_apply.pyx Processing scipy/signal/_spectral.pyx Processing scipy/signal/_sosfilt.pyx Processing scipy/stats/_stats.pyx Processing scipy/stats/_qmc_cy.pyx Processing scipy/stats/_biasedurn.pyx Processing scipy/stats/_sobol.pyx Processing scipy/stats/_boost/src/beta_ufunc.pyx Processing scipy/stats/_boost/src/nbinom_ufunc.pyx Processing scipy/stats/_boost/src/hypergeom_ufunc.pyx Processing scipy/stats/_boost/src/binom_ufunc.pyx Processing scipy/stats/_unuran/unuran_wrapper.pyx warning: unuran_wrapper.pyx:470:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:470:28: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:470:36: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:515:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:515:28: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:515:36: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:1469:21: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:1469:28: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. warning: unuran_wrapper.pyx:1469:36: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line. Cythonizing sources lapack_opt_info: lapack_mkl_info: customize UnixCCompiler libraries mkl_rt not found in ['/Library/Frameworks/Python.framework/Versions/3.10/lib', '/usr/local/lib', '/usr/lib'] NOT AVAILABLE
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
× Encountered error while generating package metadata. ╰─> See above for output.
note: This is an issue with the package mentioned above, not pip. hint: See above for details.