问答详情
源自:3-1 xlrd模块介绍

安装不了xlrd怎么办

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'


提问者:慕娘5574443 2020-10-05 19:52

个回答

  • 慕数据5430777
    2020-11-23 11:17:26

    尝试这个路径
    pycharm中安装xlrd模块
    1.先进入路径:File - >settings -> Project:pythonProject -> Python Interpreter
    点击右侧+号,在弹出的对话框中输入:xlrd,选中xlrd,点击左下角Install package
    等待进度条,会显示安装成功(页面最下角会亮起一串绿色英文),然后退出pycharm重新进入

    00