[英]Cinema 4D - Import xlwt location
I'm trying to read excel from Cinema4d using python. 我正在尝试使用python从Cinema4d中读取excel。 I believed this can be achieved using
XLWT
. 我相信可以使用
XLWT
来实现。 Where did I should copy and pasthe the XLWT
package in Mac ? 在Mac上应该在哪里复制和粘贴
XLWT
软件包? I know in Window the location is here : C:\\Users\\user\\AppData\\Roaming\\MAXON\\CINEMA 4D version\\library\\python\\packages\\
. 我知道在Window中的位置在这里:
C:\\Users\\user\\AppData\\Roaming\\MAXON\\CINEMA 4D version\\library\\python\\packages\\
。 How about Mac? Mac怎么样?
Since Python is already on OS X you should be able to use: 由于Python已安装在OS X上,因此您应该可以使用:
easy_install xlwt
or 要么
pip install xlwt
If you download xlwt then you could use: 如果下载xlwt,则可以使用:
python setup.py install
You have to install the python packages into the Python Library Folder of Cinema4D. 您必须将python软件包安装到Cinema4D的Python库文件夹中。 If you select the Preferences Menu in Cinema4D there is a Button called "Open Preferences Folder..." this will lead to a folder called CINEMA 4D R_ Inside this folder library/python/packages/osx/ is the folder where you have to install the xlrd and xlwt packages.
如果您在Cinema4D中选择“首选项”菜单,则有一个名为“打开首选项文件夹...”的按钮,这将导致一个名为CINEMA 4D R_的文件夹。在此文件夹中library / python / packages / osx /是您必须安装的文件夹xlrd和xlwt软件包。 If this is successful you should be able to access Excel files...
如果成功,则您应该能够访问Excel文件...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.