简体   繁体   English

Blender 找不到 python 模块 'openpyxl'

[英]Blender can't find python module 'openpyxl'

I apologize in advance for the lack of experience.由于缺乏经验,我提前道歉。 This is my first time using Blender.这是我第一次使用 Blender。

I am trying to import openpyxl in a python file in Blender, however, I keep getting the error message: "ModuleNotFoundError: No module named 'openpyxl'".我试图在 Blender 的 python 文件中导入 openpyxl,但是,我不断收到错误消息:“ModuleNotFoundError:没有名为‘openpyxl’的模块”。 I have openpyxl installed and my PATH should be set up.我已经安装了 openpyxl,并且应该设置我的 PATH。

openpyxl的位置

I've also tried adding 'openpyxl' to a scripts folder and adding that location to my user preferences, which also didn't work.我还尝试将“openpyxl”添加到脚本文件夹并将该位置添加到我的用户首选项中,但这也没有用。

搅拌机偏好

Any help would be appreciated.任何帮助,将不胜感激。 Thanks in advance.提前致谢。

  1. Install pip (Python's package management system).安装pip (Python的package管理系统)。 To do this, download the file file get-pip.py to the folder with the python.exe file of Blender itself (for example): cd C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\bin and install pip: python.exe get-pip.py为此,将文件 get-pip.py下载到包含 Blender 本身的 python.exe 文件的文件夹中(例如): cd C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\bin并安装pip: python.exe get-pip.py

  2. Installing packages : After installing pip, we have a Scripts folder containing pip.exe: cd C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\Scripts Install the packages of interest to it: pip.exe install openpyxl安装包:安装 pip 后,我们有一个包含 pip.exe 的脚本文件夹: cd C:\Program Files\Blender Foundation\Blender 2.91\2.91\python\Scripts安装它感兴趣的包: pip.exe install openpyxl

Download pip using cmd: curl https://bootstrap.pypa.io/get-pip.py --ssl-no-revoke -o get-pip.py使用 cmd 下载 pip: curl https://bootstrap.pypa.io/get-pip.py --ssl-no-revoke -o get-pip.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM