Unable to Install Sklearn, Scipy, and Statsmodels

Os: Mac

Python version 3.8

I've tried countless times to install sklearn, scipy, and statsmodels. I've navigated to PyCharm --> Preferences --> Project Interpreter --> Plus sign.

In 90% of the attempts, the installation never completes. Earlier today, I received an error for the scipy installation.

 

Excerpt of the error message (too big to paste). Upload ID of complete error is 2021_12_29_LZjsTKW2Gu1uDGdF.

ERROR: Command errored out with exit status 1:
command: /Users/morgan/Documents/09_freelance/feature_engine/venv/bin/python /Users/morgan/Documents/09_freelance/feature_engine/venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /var/folders/3v/y95lp0yj79gd9p1xmw9wg0yw0000gn/T/tmpl9nxv585
cwd: /private/var/folders/3v/y95lp0yj79gd9p1xmw9wg0yw0000gn/T/pip-install-ad8r955p/scipy_f2dd0c9b22bd425981c45d784cce6cb9
Complete output (183 lines):
setup.py:491: UserWarning: Unrecognized setuptools command ('dist_info --egg-base /private/var/folders/3v/y95lp0yj79gd9p1xmw9wg0yw0000gn/T/pip-modern-metadata-nuicj86b'), proceeding with generating Cython sources and expanding templates
warnings.warn("Unrecognized setuptools command ('{}'), proceeding with "
Running from SciPy source directory.
Cythonizing sources
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/_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/io/matlab/mio_utils.pyx
Processing scipy/io/matlab/streams.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
warning: _cython_special_custom.pxi:9:8: Unreachable code
warning: _cython_special_custom.pxi:13:4: Unreachable code
warning: _cython_special_custom.pxi:21:8: Unreachable code
warning: _cython_special_custom.pxi:25:4: Unreachable code
warning: _cython_special_custom.pxi:33:8: Unreachable code
warning: _cython_special_custom.pxi:37:4: Unreachable code
warning: _cython_special_custom.pxi:45:8: Unreachable code
warning: _cython_special_custom.pxi:49:4: Unreachable code
Processing scipy/sparse/csgraph/_matching.pyx
Processing scipy/sparse/csgraph/_reordering.pyx
Processing scipy/sparse/csgraph/_min_spanning_tree.pyx
Processing scipy/spatial/ckdtree.pyx
Processing scipy/spatial/_voronoi.pyx
Processing scipy/spatial/_hausdorff.pyx
Processing scipy/spatial/qhull.pyx
Processing scipy/spatial/transform/rotation.pyx
Processing scipy/signal/_peak_finding_utils.pyx
Processing scipy/signal/_max_len_seq_inner.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/_sobol.pyx
Processing scipy/stats/biasedurn.pyx
Processing scipy/stats/_boost/src/beta_ufunc.pyx
Processing scipy/stats/_boost/src/nbinom_ufunc.pyx
Processing scipy/stats/_boost/src/binom_ufunc.pyx
lapack_opt_info:
lapack_mkl_info:
customize UnixCCompiler
libraries mkl_rt not found in ['/Users/morgan/Documents/09_freelance/feature_engine/venv/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_lapack_info:
libraries openblas not found in ['/Users/morgan/Documents/09_freelance/feature_engine/venv/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

openblas_clapack_info:
libraries openblas,lapack not found in ['/Users/morgan/Documents/09_freelance/feature_engine/venv/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

flame_info:
libraries flame not found in ['/Users/morgan/Documents/09_freelance/feature_engine/venv/lib', '/usr/local/lib', '/usr/lib']
NOT AVAILABLE

accelerate_info:
NOT AVAILABLE

atlas_3_10_threads_info:
Setting PTATLAS=ATLAS
1

Please sign in to leave a comment.