0

I am new to python. I have various versions of python installed in my Mac.

The pandas is installed in python 3.5. I want to use python 2.7. However when I do

import pandas

It says:

ImportError: No module named pandas

I tried pip install pandas but it is installing in python3.5

Can anyone suggest me how I can install modules for specific python

Tanya

2

1 Answer 1

1

I would suggest you to create a virtual environment and get started with the Python version you want to work on. Link to Documentation

You may also follow easy instructions for getting your choice of Python version on IPython Notebook as well. You may follow Step 1-4 in this documentation for virtual env and Python 2.7

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.