ImportError: No module named 'xlsxwriter': Error in bamboo

萝らか妹 提交于 2019-12-11 03:53:28

问题


I have used pip to install a package named 'xlsxwriter', by using the command 'pip3 install xlsxwriter'. The code is working fine on my system, but when I am trying to run the same code on bamboo then it throwing an ImportError as "No module named 'xlsxwriter'." I have used other packages too like argparse and requests, they are working fine but for this particular package bamboo is throwing an error. When not using this particular package, the bamboo plan is successfully running, so I believe the requirements and other things for python are fine in bamboo.


回答1:


1-make sure/or change directory of your windows python 27 or python 33 is C:\Python27

2-download XlsxWriter package ( https://pypi.python.org/pypi/XlsxWriter )

3-extrat tar file (lookup for tar extractor tool for windows)

4-open cmd

5-go to your downlaoded and extracted package directory

6-type in command prompt: python setup.py install you can now check module intalled in C:\Python27\Lib\site-packages or you could type: sudo pip install xlsxwriter



来源:https://stackoverflow.com/questions/51245137/importerror-no-module-named-xlsxwriter-error-in-bamboo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!