我已经成功安装了 PyPortfolioOpt-1.4.1。当我导入内置方法 expected_return
时,出现以下错误。
from pypfopt import expected_returns
\anaconda3\lib\site-packages\cvxpy\cvxcore\python\__init__.py in <module>
1 # TODO(akshayka): This is a hack; the swig-auto-generated cvxcore.py
2 # tries to import cvxcore as `from . import _cvxcore`
3 import _cvxcore
ImportError: numpy.core.multiarray failed to import