NNsr
NNsr

Reputation: 1063

Installing Openpyxl for preinstalled python 2.7 mac lion

I would like to install openpyxl-1.8.4 on Python 2.7 that comes with Mac Lion. My Python compiler is under system/library/Frameworks/Python.frameworks/Versions/2.7/bin. I tried

python2.7 setup.py install

and also

sudo python2.7 setup.py install

and seems to me none of them works. Am I missing something? I really appreciate your help.

Thanks

Upvotes: 1

Views: 9303

Answers (2)

DinoMyte
DinoMyte

Reputation: 8868

Try the following steps :

  1. Download the latest version of Openpyxl from here

  2. Extract the downloaded file (openpyxl-x.x.tar.gz)

  3. Open the Terminal and navigate to the extracted folder ( typically \downloads\openpyxl-x.xx\ )

  4. Run the following command in the Terminal :

    python setup.py install

  5. If you have the correct permissions set on the /Library/Python/x.x/site-packages folder, it should run a bunch of command automatically and installation should complete without any issues. If not, you would need read-write permissions on just site-packages folder. If you come across any other error, the terminal command would prompt regarding that.

Upvotes: 1

Charlie Clark
Charlie Clark

Reputation: 19537

Install openpyxl using pip: sudo pip install openpyxl

Upvotes: 3

Related Questions