0

I am currently using Linux Ubuntu 16.04 and python as the language. I am trying to convert an XLSX file to pdf and I came across this question with answer. Python - Converting XLSX to PDF.

One of the answer requires me to install pandas and also wkhtmltopdf and use them to convert the files into pdf format.

I tried installing pandas but after installing pandas, I am face with builtins.ImportError: No module named 'pandas'.

So far I have tried this solution but it did not work for me.

ImportError: No module named pandas

Is it possible for me not to also install Anaconda to help me.

Can someone guide me through this.

Thanks!

asked Jul 9, 2020 at 16:57
2
  • How did you install pandas? did it result in any error? are you in virtual env? Commented Jul 9, 2020 at 16:58
  • I installed panda using pip install pandas. I have tried using pip3 install pandas but I was met with this error Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zj48c0_y/pandas/. Yes i am in a virtual environment Commented Jul 9, 2020 at 17:00

1 Answer 1

1

If you are using PyCharm IDE, you can try: Settings => Project Interpreter => plus button => search package to install

answered Jul 9, 2020 at 17:28
Sign up to request clarification or add additional context in comments.

2 Comments

How about just running the script from the terminal?
I'm not sure about the script because I had the same problem and changing settings in IDE helped me

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.