我的第一个帖子。我已经安装了zipline 1.4.1
并可以正常工作,但随后我尝试使用pip install pyfolio
安装PyFolio
。
PyFolio安装是成功的,但是,它最终卸载了我的pandas 0.22
版本,而改为安装pandas 1.1.5
。下面是我得到的信息:
Attempting uninstall: pandas
Found existing installation: pandas 0.22.0
Uninstalling pandas-0.22.0:
Successfully uninstalled pandas-0.22.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
zipline 1.4.1 requires pandas<=0.22,>=0.18.1, but you have pandas 1.1.5 which is incompatible.
Successfully installed joblib-1.0.1 pandas-1.1.5 pyfolio-0.9.2 scikit-learn-0.24.2 seaborn-0.11.1 threadpoolctl-2.1.0
在这个过程之后,我的zipline显然停止了工作,因为在熊猫版本中不匹配。
我尝试使用pip install pandas==0.18.1
手动安装所需的pandas版本,但只给出了一条非常长的错误消息。
我对下一步做什么一无所知。如有任何建议,我们将不胜感激。
转载请注明出处:http://www.shenkehuoyun.com/article/20230526/970913.html