문제

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