1

I have installed this python package called shuttle using git bash. It works fine when I am using it in git bash. But when I am trying to import shuttle from Spyder or even Jupyter Notebook, its showing error -

ImportError: No module named 'shuttle'

Can you please explain why I am seeing this error and how can I fix it ?

Update: What I realise from searching in google, pip install/spyder/anaconda all have different environment. Because I installed 'shuttle' using pip, Spyder doesn't know about it. So now the problem is how do I install the package in Spyder environment or how do I make Spyder recognise that 'Shuttle' is already installed ?

3
  • Use pip3 instead of pip. Commented Apr 16, 2018 at 17:15
  • Uninstalled shuttle and reinstalled using pip3. still getting same error. Commented Apr 16, 2018 at 17:21
  • If you installed Python with Anaconda, then you should use conda instead of pip. Commented Apr 16, 2018 at 18:26

1 Answer 1

1

This is how I solved it: 1. Install the package via pip. In your case shuttle 2. Locate the directory where shuttle is installed. You can do that by opening terminal python import shuttle shuttle #displays location of shuttle 3. Now add shuttle to /path/to/anaconda/lib/

reference post: Anaconda: Permanently include external packages (like in PYTHONPATH)

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.