简体   繁体   中英

Blender can't find python module 'openpyxl'

I apologize in advance for the lack of experience. This is my first time using 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'". I have openpyxl installed and my PATH should be set up.

openpyxl的位置

I've also tried adding 'openpyxl' to a scripts folder and adding that location to my user preferences, which also didn't work.

搅拌机偏好

Any help would be appreciated. Thanks in advance.

  1. Install pip (Python's package management system). 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

  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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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