python正常安装其他库后。
pip install xlwings
提示以下信息。
Requirement already satisfied: xlwings in c:\users\zheng\appdata\local\programs\python\python38\lib\site-packages (0.30.12) Requirement already satisfied: pywin32>=224 in c:\users\zheng\appdata\local\programs\python\python38\lib\site-packages (from xlwings) (306)
通过搜索该问题了解到,安装库后的路径和实际的库路径不对,需要增加--target标明实际路径。
c:\users\zheng\appdata\local\programs\python\python38\lib\site-packages (0.30.12)
解决办法: 在cmd中使用pip install --target=目标路径 工具包名字格式的命令去安装所需要的库。
pip install --target=c:\users\zheng\appdata\local\programs\python\python38\lib\site-packages xlwings Collecting xlwings标签:Requirement,already,lib,appdata,python,xlwings,satisfied From: https://www.cnblogs.com/zpzp/p/17864499.html