1

I used homebrew to install python 2.x.x and python 3.x.x

I installed several package for both Python versions using the pip2 and pip3 commands.

One of the packages I installed was iPython.

Now, my default python command (i.e when I write pythonin the command line= points to Homebrew 2.x.x python, but my default ipython command uses Python 3.x.x for some reason I can't understand.

How can I change this? I'm trying to use hydrogen package in atomto use jupyter but I'm doing a Python 2.x.x project and hydrogen keeps trying to run it using Python 3.x.x.

1 Answer 1

1

Ok, I found the answer.

Simply copy the ipython2 file to ipython:

cp /usr/local/bin/ipython2 /usr/local/bin/ipython
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.