Code Monkey home page Code Monkey logo

Comments (4)

graybat21 avatar graybat21 commented on May 30, 2024

우선 파이썬은 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.

mkilyu17a avatar mkilyu17a commented on May 30, 2024

우분투를 깔면 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.

keon avatar keon commented on May 30, 2024

말씀하신대로 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.

mkilyu17a avatar mkilyu17a commented on May 30, 2024

네, 감사합니다.

from reinforcement-learning-kr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.