Comments (4)
우선 파이썬은 3.5 이상 버전을 쓰시길 권합니다.
tkinter 는 gui 연결을 해주는 라이브러리 인데 파이썬2.7, 3.5에 적용되는 tkinter가 따로 있는것 같습니다.
밑에서 4번째줄에 깔라는 메시지도 나오네요.
ImportError: No module named '_tkinter', please install the python3-tk package
현재 tkinter 가 2.7에서만 작동하는 거여서 새로 버전 3.x에 적용되는 tkinter 를 깔아보셔보세요. 확실치는 않지만 다음 명령어로 깔아보셔요
sudo apt-get install python3-tk
from reinforcement-learning-kr.
우분투를 깔면 Python 2.7버전과 Python 3.5 버전이 default로 깔려 있다고 합니다.
말씀하신 대로 python3-tk를 깔고 Python3로 실행하여 보니 이번에는 nummy가 설치되어 있지 않다고 나오더라구요.
분명히 sudo pip install -r requirements.txt를 실행하여 설치가 되어 있을 터인데 무엇이 문제일까 생각해 보다가 문뜩,
sudo pip3 install -r requirements.txt를 하니 새로 설치를 하고 이후에는 1-value-iteration을 실행할 수 있게 되었습니다. 이 점은 Web-Site에서도 변경되어야 하지 않을까 생각됩니다.
그리고, 설치하다 보니
pip3의 버전이 8.1.1인 것같은데요.
$pip3 -V
pip 8.1.1 from /usr/lib/python3/dist-packages (python 3.5)
pip의 버전은 9.0.1인 것 같습니다.
$pip -V
pip 9.0.1 from /user/miki/.local/lib/python2.7/site-packages (python 2.7)
pip3의 버전을 upgrade해야 할 것 같은데, 이 것은 어떤 명령어인지 알려 주실 수 있으신지요?
from reinforcement-learning-kr.
말씀하신대로 python2와 python3의 pip을 구분하기 위해 pip, pip2, pip3 등으로 구별을 합니다. 사용자가 어떤
설정을 했느냐에 따라서 pip명령어가 python2의 pip을을 가리키기도 하고 python3의 pip을 가리키기도 합니다.
pip3 를 업그레이드 하기 위해선
sudo pip3 install --upgrade pip
를 하시면 될것 같습니다. (참고: https://stackoverflow.com/questions/38613316/how-to-upgrade-pip3)
pip/pip3 구분은 파이썬을 다루는 문제이고 사용자마다 다를수 있기 때문에 언급을 하지 않았는데, 우분투 기본 파이썬에대한 참고문을 다음 업데이트에 넣어보도록 하겠습니다. 빨리 파이썬2가 도태되었으면 좋겠네요 ㅠㅠ
from reinforcement-learning-kr.
네, 감사합니다.
from reinforcement-learning-kr.
Related Issues (20)
- p.147 부등호가 책과 반대입니다.
- module 'tensorflow' has no attribute 'get_default_graph' 발생 HOT 2
- predict 값 nan 출력
- play_dqn_model.py 의 score 문제 HOT 5
- 파이썬 3.7버전에선 tensorflow가 install이 안되는건가요? HOT 1
- 3-atari에서 breakout_a3c.py 실행에 관한 문제 HOT 3
- 강화학습 실행 문제 그리드월드 reinforce_agent.py 실행시 HOT 4
- 그림과 수식에 대한 파일은 안올려주시나요? HOT 3
- 멀티쓰레드 학습에 관련해서 질문이 있습니다.
- 제 3장 코드에서 width,height 혼동 문제.
- monte carlo에서 왜 last visit 방식으로 구현?
- 아타리 브레이크 아웃 설치 과정 오류 생깁니다. HOT 1
- 1-grid-world/7-reinforce/reinforce_agent.py 오류 HOT 2
- p.198 수식 5.21 질문
- 아타리 설치가 잘 안됩니다 ㅠㅠ
- Q-learning epsilon parameter for Epsilon-greedy action selection
- MC_learning.py 관련 문의
- 코드 실해 해봤는데 # 정책신경망을 업데이트하는 훈련함수 생성 부분에서 에러가 나요 HOT 4
- 1-grid-world 1-policy-iteration 코드 에러 질문입니다.
- 2-cartpole 2-actor-critic의 VisibleDeprecationWarning 오류 (넘파이 버전문제??)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reinforcement-learning-kr.