3

I cant figure out for the life of me how in the world to install How to Quandl on Anaconda 3.4 on OSX.

I have tried using: pip install quandl, I have tried moving files around and opening the setup.py file and I keep getting a syntax error. It is extremely annoying that I cant get this done even after a ton of googling. I would greatly appreciate it someone out there who has done this could please clue me in on how to install quandl. Thanks.

Tshilidzi Mudau
  • 7,373
  • 6
  • 36
  • 49
akaras222
  • 81
  • 1
  • 2
  • 10
  • Could you include the error dump? It's pretty hard to debug "I keep getting a syntax error". – Hugh Bothwell Feb 20 '15 at 01:24
  • For what it's worth, `pip install quandl` works perfectly for me (Anaconda 2.1.0, Python 3.4.1, Win7 x64) – Hugh Bothwell Feb 20 '15 at 02:35
  • I typed "pip install quandl", in the console and it outputted " pip install Quandl ^ SyntaxError: invalid syntax " – akaras222 Feb 20 '15 at 02:54
  • Where can I locate the error dump so I can provide more information? – akaras222 Feb 20 '15 at 02:55
  • I placed file "Quandl-2.8.5.tar.gz" into my working directory, is the where it should be when I do the install using pip install quandl? Is there a way to install it from the directory that I have it in rather than the web? I am at a loss here as to how to get this to work. – akaras222 Feb 20 '15 at 03:00
  • What do you get if you run `pip --version`? Are you sure you have pip installed? – Hugh Bothwell Feb 20 '15 at 03:03
  • Scratch that - Anaconda comes with setuptools installed - but are you sure pip is in your path ie you can actually run it? – Hugh Bothwell Feb 20 '15 at 03:12
  • Yes pip seems to be working I am able to call its member functions like pip.absolute_import etc....But still not luck on the 'pip install quandl' unfortunately. I do not know how to make sure that pip in is my path however. – akaras222 Feb 20 '15 at 03:43

5 Answers5

3

Solution is indeed to type

pip install Quandl

However this simply needs to be typed in the OSX terminal or command prompt and NOT in the Anaconda workspace!

It works perfectly.

kalehmann
  • 4,821
  • 6
  • 26
  • 36
akaras222
  • 81
  • 1
  • 2
  • 10
3

Anaconda has the install https://anaconda.org/anaconda/quandl

From that page, to install this package with conda run:

conda install -c https://conda.anaconda.org/anaconda quandl
Tunaki
  • 132,869
  • 46
  • 340
  • 423
DNMurphy
  • 129
  • 1
  • 7
1

If you are using anaconda:

conda install pip

Else:

pip install quandl
Tshilidzi Mudau
  • 7,373
  • 6
  • 36
  • 49
Linna Du
  • 21
  • 5
  • no clue why two commends are shown in one line. But everybody should get that they are two commends, right? – Linna Du Nov 18 '15 at 18:58
0

I sometimes have luck running the 2to3 command in terminal. Run

2to3 *.py

in the main project folder and any subdirectories containing .py files.

user14241
  • 727
  • 1
  • 8
  • 27
0

Run the following at the appropriate command prompt:

conda install quandl

hope it works !

Ikbel
  • 1,817
  • 1
  • 17
  • 30