참고 1 : http://injeblog.tistory.com/97
참고 2 : http://eunguru.tistory.com/28
- 본 페이지는 아래 블로그의 tensorFlow 실행을 수행해본 페이지입니다.
- MAC 환경입니다.
- [Tensorflow] LSTM RNN을 이용하여 아마존 주가 예측하기
- https://blog.naver.com/PostView.nhn?blogId=wideeyed&logNo=221160038616&proxyReferer=https%3A%2F%2Fwww.google.co.kr%2F [Tensorflow] LSTM RNN을 이용하여 아마존 주가 예측하기
1. Python 3.6 설치
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
==> 버전이 맞지 않음~
- 파이선 3.6 설치 : https://www.python.org/downloads/release/python-366/
- Bash 파일 업데이트 : 3.7 버젼이 자꾸 실행되서 바꿈
eunbi@EB-MacPro ~ vi .bash_profile
alias python="python3"
PYTHON="/Library/Frameworks/Python.framework/Versions/3.6/bin/python3"
export PATH=$PATH:/usr/local/go/bin:$PYTHON
2. pip upgrade
- pip3.6 install --upgrade pip
eunbi@EB-MacPro ~ pip3.6 install --upgrade pip
Collecting pip
Using cached https://files.pythonhosted.org/packages/c2/d7/90f34cb0d83a6c5631cf71dfe64cc1054598c843a92b400e55675cc2ac37/pip-18.1-py2.py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-18.1
3. TensorFlow 설치
- eunbi@EB-MacPro ~ python3.6 -m pip install tensorflow
- eunbi@EB-MacPro ~ python3.6 -m pip install tensorflow
4. Python - 환경 설치
- python3.6 -m pip install numpy
- python3.6 -m pip install pandas
- python3.6 -m pip install matplotlib
- python3.6 -m pip install datetime
5. 주가 파일 데이터 다운
6. 파일 실행
- python3.6 amazon.py
- amazon.py