
Openuse Linux용 Python 3.6을 다운로드하는 방법.
yum을 사용하여 다운로드를 시도했지만 다운로드되지 않았습니다. YaST를 사용하여 다운로드를 시도했는데 URL을 변경하라는 메시지가 표시됩니다. 내 시스템에는 이미 Python 버전 2.7.5가 설치되어 있고 버전 3.3도 다운로드했습니다.
어느 디렉토리에 다운로드해야 합니까?
python3.6을 다운로드한 후 아나콘다를 다운로드하고 싶은데 3.6 Python 버전이 필요한데 다른 버전이 아닌 3.6 Python 버전에 어떻게 액세스할 수 있습니까?
터미널의 Yum 코드:
yum install python
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
tar -xvzf Python-3.5.2.tgz
cd Python-3.5.2
./configure --prefix=/usr/bin
make altinstall
YaST https 미디어 유형에 저장소를 추가하는 방법:
URL of the repository:https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz
Repository name: Python
YUM 명령 사용 중 오류 발생: usr/bin 디렉토리에서 python3.6을 실행하려고 합니다.
mysys:/usr/bin/Python-3.6.0 # python3.6
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.6.0 (default, Feb 1 2018, 10:59:47)
[GCC 4.8.1 20130909 [gcc-4_8-branch revision 202388]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ModuleNotFoundError: No module named 'readline'
홈 디렉토리에서:
mysys:/home> python3.3
Python 3.3.2 (default, Jun 13 2013, 16:05:31) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
[1]+ Stopped python3.3
mysys:/home> python3.6
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python 3.6.0 (default, Feb 1 2018, 10:59:47)
[GCC 4.8.1 20130909 [gcc-4_8-branch revision 202388]] on linux
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ModuleNotFoundError: No module named 'readline'
>>>
답변1
자니 카르후넨은Python 3.6 설치 과정.
기본적으로:
yum
유틸리티가 최신 상태인지 확인하세요 .
sudo yum update
sudo yum install yum-utils
sudo yum groupinstall development
IUS 저장소를 설치합니다.
sudo yum install https://centos7.iuscommunity.org/ius-release.rpm
그런 다음 Python 3.6을 설치하십시오.
sudo yum install python36u