alphalens
alphalens copied to clipboard
cant install alphalens from pip because of outdated configparser method call
(stocks) C:\Users\stanley>pip install alphalens Collecting alphalens Using cached alphalens-0.4.0.tar.gz (24.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
C:\Users\stanley\AppData\Local\Temp\pip-install-kx2jl_pm\alphalens_7eff4e4e7ff74df7bc217277410482f0\versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "
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.
(stocks) C:\Users\stanley>python --version Python 3.12.2
the SafeConfigParser() method has been merged into ConfigParser() method. you guys should update that versioneer.py its from 7 yrs ago!
I was able to get around this by downgrading from 3.12 -> 3.10
Same issues too!
Likely run in watson cloud studio,but can/t install in local coumputer