C:\Users\piaop>pip install xlrd
Traceback (most recent call last):
File "d:\python\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\python\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\Python\Scripts\pip.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'pip'
尝试这个路径
pycharm中安装xlrd模块
1.先进入路径:File - >settings -> Project:pythonProject -> Python Interpreter
点击右侧+号,在弹出的对话框中输入:xlrd,选中xlrd,点击左下角Install package
等待进度条,会显示安装成功(页面最下角会亮起一串绿色英文),然后退出pycharm重新进入
00