Closed PyRickyRa closed 10 months ago
Hi @PyRickyRa, please see this ticket: https://github.com/robertmartin8/PyPortfolioOpt/issues/426
Or you could try pip install cmake
b/c you dont have cmake on your computer.
I'll close this ticket, feel free to re-open it if you need help.
Still not working
Ok, please try this to install CMake:
brew install cmake for OS X sudo apt install cmake for Ubuntu
cmake version 3.28.1 for OS X, but when I do sudo apt install cmake for Ubuntu it tells me: The operation couldn’t be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java.
Hi @PyRickyRa, please try below commands in order:
pip uninstall cmake
brew uninstall cmake
brew install cmake
pip install pyportfolioopt
fyi you can see other tickets: https://github.com/robertmartin8/PyPortfolioOpt/issues/561, https://github.com/robertmartin8/PyPortfolioOpt/issues/274
Hi, i am not able to install PyPortfolioOpt. I have already installed https://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/. When I do pip3 install PyPortfolioOpt, then I get:
Defaulting to user installation because normal site-packages is not writeable Collecting PyPortfolioOpt Using cached pyportfolioopt-1.5.5-py3-none-any.whl (61 kB) Collecting cvxpy<2.0.0,>=1.1.19 (from PyPortfolioOpt) Using cached cvxpy-1.4.1-cp39-cp39-macosx_10_9_universal2.whl.metadata (8.8 kB) Requirement already satisfied: numpy<2.0.0,>=1.22.4 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (1.26.3) Requirement already satisfied: pandas>=0.19 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (2.1.4) Requirement already satisfied: scipy<2.0,>=1.3 in ./Library/Python/3.9/lib/python/site-packages (from PyPortfolioOpt) (1.11.4) Collecting osqp>=0.6.2 (from cvxpy<2.0.0,>=1.1.19->PyPortfolioOpt) Using cached osqp-0.6.3.tar.gz (228 kB) Installing build dependencies ... error error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [118 lines of output] Collecting oldest-supported-numpy Using cached oldest_supported_numpy-2023.12.21-py3-none-any.whl.metadata (9.8 kB) Collecting setuptools>=40.8.0 Using cached setuptools-69.0.3-py3-none-any.whl.metadata (6.3 kB) Collecting wheel Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB) Collecting setuptools_scm>=6.2 Using cached setuptools_scm-8.0.4-py3-none-any.whl.metadata (6.4 kB) Collecting qdldl Using cached qdldl-0.1.7.post0.tar.gz (70 kB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Installing backend dependencies: started Installing backend dependencies: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting numpy==1.21.0 (from oldest-supported-numpy) Using cached numpy-1.21.0-cp39-cp39-macosx_11_0_arm64.whl (12.1 MB) Collecting packaging>=20 (from setuptools_scm>=6.2) Using cached packaging-23.2-py3-none-any.whl.metadata (3.2 kB) Collecting typing-extensions (from setuptools_scm>=6.2) Using cached typing_extensions-4.9.0-py3-none-any.whl.metadata (3.0 kB) Collecting tomli>=1 (from setuptools_scm>=6.2) Using cached tomli-2.0.1-py3-none-any.whl (12 kB) Collecting scipy>=0.13.2 (from qdldl) Using cached scipy-1.11.4-cp39-cp39-macosx_12_0_arm64.whl.metadata (60 kB) INFO: pip is looking at multiple versions of scipy to determine which version is compatible with other requirements. This could take a while. Using cached scipy-1.11.3-cp39-cp39-macosx_12_0_arm64.whl.metadata (60 kB) Using cached scipy-1.11.2-cp39-cp39-macosx_12_0_arm64.whl.metadata (54 kB) Using cached scipy-1.11.1-cp39-cp39-macosx_12_0_arm64.whl.metadata (54 kB) Using cached scipy-1.10.1-cp39-cp39-macosx_12_0_arm64.whl (28.9 MB) Using cached oldest_supported_numpy-2023.12.21-py3-none-any.whl (4.9 kB) Using cached setuptools-69.0.3-py3-none-any.whl (819 kB) Using cached wheel-0.42.0-py3-none-any.whl (65 kB) Using cached setuptools_scm-8.0.4-py3-none-any.whl (42 kB) Using cached packaging-23.2-py3-none-any.whl (53 kB) Using cached typing_extensions-4.9.0-py3-none-any.whl (32 kB) Building wheels for collected packages: qdldl Building wheel for qdldl (pyproject.toml): started Building wheel for qdldl (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Can you please help me ?