使用 pip 安装时
python3 -m pip install
我得到了错误
AttributeError: module 'csv' has no attribute 'reader'
安装的 Python 版本是python --version Python 3.10.12
我想知道我的 Python 安装/路径是否有问题。
谢谢。
的输出python3 -c 'import sys;import csv;print(sys.version,csv.__all__)';echo /bin/python*
是
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'csv' has no attribute '__all__'. Did you mean: '__file__'?
/bin/python /bin/python3 /bin/python3.10 /bin/python3.10-config /bin/python3.10-coverage /bin/python3-config /bin/python3-coverage /bin/python3-futurize /bin/python3-pasteurize /bin/python-argcomplete-check-easy-install-script3 /bin/python-argcomplete-tcsh3