qstrader
qstrader copied to clipboard
error installing QSTrader on my MAC book pro
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/
upgrade pip? or use pip3?
pip not pip3. I just upgraded today to pip3
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/
Getting the same issue on Macbook Pro, Minconda3 environment.
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.
For MacOS
I have used Anaconda Navigator to installed below missing items on my qstrader environment
- cython
- gfortran_osx-64
- libgfortran