I'm trying to read excel from Cinema4d using python. I believed this can be achieved using XLWT. Where did I should copy and pasthe the XLWT package in Mac? I know in Window the location is here :C:\Users\user\AppData\Roaming\MAXON\CINEMA 4D version\library\python\packages\. How about Mac?

有帮助吗?

解决方案 2

You have to install the python packages into the Python Library Folder of Cinema4D. 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. If this is successful you should be able to access Excel files...

其他提示

Since Python is already on OS X you should be able to use:

easy_install xlwt

or

pip install xlwt

If you download xlwt then you could use:

python setup.py install
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top