AlgoTraders / stock-analysis-engine

Backtest 1000s of minute-by-minute trading algorithms for training AI with automated pricing data from: IEX, Tradier and FinViz. Datasets and trading performance automatically published to S3 for building AI training datasets for teaching DNNs how to trade. Runs on Kubernetes and docker-compose. >150 million trading history rows generated from +5000 algorithms. Heads up: Yahoo's Finance API was disabled on 2019-01-03 https://developer.yahoo.com/yql/
https://stock-analysis-engine.readthedocs.io/en/latest/README.html
1.04k stars 251 forks source link

creating stock_analysis_engine.egg-info error: could not create 'stock_analysis_engine.egg-info': Permission denied #374

Closed vmajor closed 4 years ago

vmajor commented 4 years ago

Hello,

Before I tell you about my issue, let me describe my environment:

Environment

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

When I got to the step 'pip install -e .' I get the following error:

ERROR: Command errored out with exit status 1:
     command: /opt/venv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/opt/sa/setup.py'"'"'; __file__='"'"'/opt/sa/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info
         cwd: /opt/sa/
    Complete output (3 lines):
    running egg_info
    creating stock_analysis_engine.egg-info
    error: could not create 'stock_analysis_engine.egg-info': Permission denied
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Not have an error and move to the next step

Error

Here is how you can reproduce this issue on your machine:

Reproduction Steps

  1. Follow Ubuntu installation steps
  2. execute 'pip install -e .'

What steps have you taken to resolve this already?

Google. ...

Anything else?

No.

...

Sincerely, $ whoami

vmajor commented 4 years ago

SOLVED:

use

sudo pip3 install -e .