Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Python3.9安装过程报错module 'configparser' has no attribute 'SafeConfigParser' #89

Open
devin-wang-ni opened this issue Dec 7, 2024 · 0 comments
Labels
question Further information is requested

Comments

@devin-wang-ni
Copy link

Windows Python3.9安装过程报错AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? 请问怎么解决呢?

PS D:\Quant\Qbot-main> pip install -r requirements.txt
Collecting git+https://github.com/quantopian/pyfolio (from -r requirements.txt (line 5))
Cloning https://github.com/quantopian/pyfolio to c:\users\wangl\appdata\local\temp\pip-req-build-5a2blp37
Running command git clone --filter=blob:none --quiet https://github.com/quantopian/pyfolio 'C:\Users\wangl\AppData\Local\Temp\pip-req-build-5a2blp37'
Resolved https://github.com/quantopian/pyfolio to commit 4b901f6d73aa02ceb6d04b7d83502e5c6f2e81aa
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\wangl\AppData\Local\Temp\pip-req-build-5a2blp37\versioneer.py:468: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\wangl\AppData\Local\Temp\pip-req-build-5a2blp37\setup.py", line 67, in
version=versioneer.get_version(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wangl\AppData\Local\Temp\pip-req-build-5a2blp37\versioneer.py", line 1407, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "C:\Users\wangl\AppData\Local\Temp\pip-req-build-5a2blp37\versioneer.py", line 1341, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\wangl\AppData\Local\Temp\pip-req-build-5a2blp37\versioneer.py", line 399, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
[end of output]

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.

@devin-wang-ni devin-wang-ni added the question Further information is requested label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant