CMSeeK https://notes.masterweb.sk/index.php/ sk CMSeeK - problem with 2 versions of python https://notes.masterweb.sk/index.php/cms-detect-cmseek-good-wp/cmseek-problem-2-versions-python <span class="field field--name-title field--type-string field--label-hidden">CMSeeK - problem with 2 versions of python</span> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span lang="" about="/index.php/user/1" typeof="schema:Person" property="schema:name" datatype="">ROOT</span></span> <span class="field field--name-created field--type-created field--label-hidden">Ut, 04/23/2019 - 15:34</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Centos has by default installed python version 2.7.x, but CMSeeK will work only with python 3.6 (didnt tried another).  Regerding this article <a href="https://linuxize.com/post/how-to-install-python-3-on-centos-7/">https://linuxize.com/post/how-to-install-python-3-on-centos-7/</a> I set up temporary scl enable rh-python36 bash but this solution is just temporary. So I tried even make enviroment, but it works similar as scl enable...</p> <p>So I tried add alias into .bashrc and this looks working: <a href="https://stackoverflow.com/questions/45542690/linux-centos-7-how-to-set-python3-5-2-as-default-python-version">https://stackoverflow.com/questions/45542690/linux-centos-7-how-to-set-python3-5-2-as-default-python-version</a></p> <p>nano .bashrc<br /> add:</p> <p>alias python3="/usr/bin/python3.4"</p> <p>then logout / login from ssh.</p></div><div class="field field--name-field-tags field--type-entity-reference field--label-above clearfix"> <h3 class="field__label">Značky</h3> <ul class="links field__items"> <li><a href="/index.php/taxonomy/term/26" hreflang="sk">CMSeeK</a></li> <li><a href="/index.php/taxonomy/term/27" hreflang="sk">bashrc</a></li> <li><a href="/index.php/taxonomy/term/28" hreflang="sk">python</a></li> </ul> </div> Tue, 23 Apr 2019 13:34:42 +0000ROOT52 at https://notes.masterweb.sk