qstrader icon indicating copy to clipboard operation
qstrader copied to clipboard

error installing QSTrader on my MAC book pro

Open mmourani opened this issue 7 years ago • 6 comments

hi,

I was trying to run the following : pip install -r https://raw.githubusercontent.com/mhallsmoore/qstrader/master/requirements.txt

and I get the following error : Command "/Users/mmourani/venv/qstraderp3/bin/python3 -u -c "import setuptools, tokenize;file='/private/var/folders/3g/bns9h7ds6l57hpstx8p2kzlc0000gn/T/pip-build-a3o1sh9z/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /var/folders/3g/bns9h7ds6l57hpstx8p2kzlc0000gn/T/pip-df49jlgg-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/mmourani/venv/qstraderp3/include/site/python3.6/scipy" failed with error code 1 in /private/var/folders/3g/bns9h7ds6l57hpstx8p2kzlc0000gn/T/pip-build-a3o1sh9z/scipy/

mmourani avatar Sep 12 '17 15:09 mmourani

upgrade pip? or use pip3?

JamesKBowler avatar Oct 14 '17 16:10 JamesKBowler

pip not pip3. I just upgraded today to pip3

mmourani avatar Oct 23 '17 11:10 mmourani

with pip3 i get the bellow error now : Command "/opt/local/bin/python3 -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-lo0n6qw1/scipy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-_a37u5u9-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-lo0n6qw1/scipy/

mmourani avatar Oct 23 '17 11:10 mmourani

Getting the same issue on Macbook Pro, Minconda3 environment.

gmahjub avatar Dec 14 '17 23:12 gmahjub

I fixed this issue by creating a seperate environment, "conda create --name qstraderp3".

Interestingly enough, this did not solve my problem on installing this on Windows. The install on my windows machine is failing when installing the numpy and scipy packages. I'm sure that there are things in my PATH that are conflicting.

gmahjub avatar Dec 15 '17 00:12 gmahjub

For MacOS

I have used Anaconda Navigator to installed below missing items on my qstrader environment

  1. cython
  2. gfortran_osx-64
  3. libgfortran

tekalesachin avatar Apr 21 '18 15:04 tekalesachin