Closed leontsi closed 2 years ago
Hi there. Your version of Python is too high. Please review the setup instructions here as well as this pinned issue.
Hi Stefanie, Thank you so much for your prompt reply. Running "conda create --name book_env python=3.8" has resolved the issue. Looking forward to proceeding with your book. Best regards, Leon
Glad you got it sorted out, Leon – happy learning :smile:
Background information
1. Which OS are you using? windows10 pro
2. Which Python version are you using? 3.10.1
3. Are you using
conda
orvenv
? condaHello, The command "(book_env) C:\DA>pip3 install -r requirements.txt" works fine up until wheel (included). When it attempts to install the rest, I get the following errors (sorry for the long paste):
(book_env) C:\DA>pip3 install -r requirements.txt Collecting git+https://github.com/stefmolin/login-attempt-simulator.git@2nd_edition (from -r requirements.txt (line 15)) Cloning https://github.com/stefmolin/login-attempt-simulator.git (to revision 2nd_edition) to c:\users\leon\appdata\local\temp\pip-req-build-m7ysij9r Running command git clone --filter=blob:none --quiet https://github.com/stefmolin/login-attempt-simulator.git 'C:\Users\Leon\AppData\Local\Temp\pip-req-build-m7ysij9r' Running command git checkout -q 76e065a122343ebdd51c1cae98fbb8285411c0ff Resolved https://github.com/stefmolin/login-attempt-simulator.git to commit 76e065a122343ebdd51c1cae98fbb8285411c0ff Preparing metadata (setup.py) ... done Collecting git+https://github.com/stefmolin/ml-utils.git@2nd_edition (from -r requirements.txt (line 16)) Cloning https://github.com/stefmolin/ml-utils.git (to revision 2nd_edition) to c:\users\leon\appdata\local\temp\pip-req-build-level6 Running command git clone --filter=blob:none --quiet https://github.com/stefmolin/ml-utils.git 'C:\Users\Leon\AppData\Local\Temp\pip-req-build-level6' Running command git checkout -q 90ec708f1b9333a47c29d6b5a1fef13f409fbaea Resolved https://github.com/stefmolin/ml-utils.git to commit 90ec708f1b9333a47c29d6b5a1fef13f409fbaea Preparing metadata (setup.py) ... done Collecting git+https://github.com/stefmolin/stock-analysis.git@2nd_edition (from -r requirements.txt (line 17)) Cloning https://github.com/stefmolin/stock-analysis.git (to revision 2nd_edition) to c:\users\leon\appdata\local\temp\pip-req-build-grh5e_gd Running command git clone --filter=blob:none --quiet https://github.com/stefmolin/stock-analysis.git 'C:\Users\Leon\AppData\Local\Temp\pip-req-build-grh5e_gd' Running command git checkout -q a85af035178626c655d1ba04fd51ff6a4461a113 Resolved https://github.com/stefmolin/stock-analysis.git to commit a85af035178626c655d1ba04fd51ff6a4461a113 Preparing metadata (setup.py) ... done Processing c:\da\visual-aids Preparing metadata (setup.py) ... done Collecting graphviz==0.14.1 Using cached graphviz-0.14.1-py2.py3-none-any.whl (18 kB) Collecting imbalanced-learn==0.7.0 Using cached imbalanced_learn-0.7.0-py3-none-any.whl (167 kB) Collecting ipympl==0.6.2 Using cached ipympl-0.6.2-py2.py3-none-any.whl (105 kB) Collecting jupyterlab==3.0.4 Using cached jupyterlab-3.0.4-py3-none-any.whl (8.3 MB) Collecting matplotlib==3.3.2 Using cached matplotlib-3.3.2.tar.gz (37.9 MB) Preparing metadata (setup.py) ... done Collecting numpy==1.19.2 Using cached numpy-1.19.2.zip (7.3 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 ╰─> [208 lines of output] Running from numpy source directory. setup.py:470: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates run_build = parse_setuppy_commands() Processing numpy/random_bounded_integers.pxd.in Processing numpy/random\bit_generator.pyx Processing numpy/random\mtrand.pyx Processing numpy/random_bounded_integers.pyx.in Processing numpy/random_common.pyx Processing numpy/random_generator.pyx Processing numpy/random_mt19937.pyx Processing numpy/random_pcg64.pyx Processing numpy/random_philox.pyx Processing numpy/random_sfc64.pyx Cythonizing sources blas_opt_info: blas_mkl_info: No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils customize MSVCCompiler libraries mkl_rt not found in ['C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3056.0_x64qbz5n2kfra8p0\lib', 'C:\', 'C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3056.0_x64qbz5n2kfra8p0\libs', 'C:\Users\Leon\anaconda3\Library\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.
Please let me know how to fix it. Thanks a lot, Leon