yingnan liu
yingnan liu

Reputation: 509

Import Openpyxl on Python 2 or Python 3

I have the following codes running fine in Python 3. But I got an error of "no module named openpyxl" when i run in Python 2.

import openpyxl
from openpyxl import Workbook

I did try "pip install openpyxl", and "!pip install openpyxl" in Python 2 in Bluemix but still not working. Any advice? Thank you so much!!!!!!

Upvotes: 3

Views: 8550

Answers (1)

James
James

Reputation: 21

On my Linux Mint (Rafaela) installation, with python 2.7 & python 3.5, I have to use "pip3 install" to load into python 3.

Upvotes: 2

Related Questions