Electrum 실행 시 충돌이 발생하고 Python을 업데이트할 수 없으며 Electrum을 제거할 수 없습니다.

Electrum 실행 시 충돌이 발생하고 Python을 업데이트할 수 없으며 Electrum을 제거할 수 없습니다.

우분투 16.04가 있습니다. 이전 Electrum 지갑이 시작 시 충돌이 발생하지만 Python 3.6이 필요하기 때문에 최신 버전의 Electrum을 설치할 수 없습니다.

:~/Downloads/Electrum-3.3.6$ ./setup.py
Error: Electrum requires Python version >= 3.6.1...

Python이 최신 버전이기 때문에 Electrum을 업데이트할 수 없습니다.

:~/Downloads/Electrum-3.3.6$ sudo apt-get install python3.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3.6 is already the newest version (3.6.9-1+xenial1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

그리고 새 버전을 설치하기 위해 Electrum을 제거할 수도 없습니다.

:~/Downloads/Electrum-3.3.6$ sudo apt remove electrum
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package electrum

업데이트 1:

:~/Downloads/Electrum-3.3.6$ sudo apt-get install python3-setuptools 

python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-setuptools is already the newest version (20.7.0-1).
python3-pip is already the newest version (8.1.1-2ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

그 다음에

:~/Downloads/Electrum-3.3.6$ python3 -m pip install --user Electrum-3.3.8.tar.gz[fast]
Processing ./Electrum-3.3.8.tar.gz
    Complete output from command python setup.py egg_info:
    Error: Electrum requires Python version >= 3.6.1...
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-gwdsuxze/
You are using pip version 19.0.3, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

그 다음에

:~/Downloads/Electrum-3.3.6$ pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
     |████████████████████████████████| 1.4MB 188kB/s 
Installing collected packages: pip
  Found existing installation: pip 19.1.1
    Uninstalling pip-19.1.1:
      Successfully uninstalled pip-19.1.1
  Rolling back uninstall of pip
  Moving to /home/user/.local/bin/pip
   from /tmp/pip-uninstall-Jz4og3/pip
  Moving to /home/user/.local/bin/pip2
   from /tmp/pip-uninstall-Jz4og3/pip2
  Moving to /home/user/.local/bin/pip2.7
   from /tmp/pip-uninstall-Jz4og3/pip2.7
  Moving to /home/user/.local/lib/python2.7/site-packages/pip-19.1.1.dist-info/
   from /home/user/.local/lib/python2.7/site-packages/~ip-19.1.1.dist-info
  Moving to /home/user/.local/lib/python2.7/site-packages/pip/
   from /home/user/.local/lib/python2.7/site-packages/~ip
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip'
Consider using the `--user` option or check the permissions.

WARNING: You are using pip version 19.1.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

그 다음에

:~/Downloads/Electrum-3.3.6$ python3 Electrum-3.3.8/run_electrum
  File "Electrum-3.3.8/run_electrum", line 67
    sys.exit(f"Error: {str(e)}. Try 'sudo python3 -m pip install <module-name>'")
                                                                               ^
SyntaxError: invalid syntax

답변1

종속성을 설치합니다.

sudo apt-get install python3-pyqt5

패키지 다운로드:

wget https://download.electrum.org/3.3.8/Electrum-3.3.8.tar.gz

서명 확인:

wget https://download.electrum.org/3.3.8/Electrum-3.3.8.tar.gz.asc
gpg --verify Electrum-3.3.8.tar.gz.asc

설치하지 않고 실행:

tar -xvf Electrum-3.3.8.tar.gz
python3 Electrum-3.3.8/run_electrum

PIP로 설치:

sudo apt-get install python3-setuptools python3-pip
python3 -m pip install --user Electrum-3.3.8.tar.gz[fast]

편집하다 Python 2.7은 2020년 이후에는 유지 관리되지 않습니다. 원래는 공식적인 날짜가 없었습니다. 최근 해당 날짜가 2020년 1월 1일로 업데이트되었습니다.

사용을 자제해주세요파이썬 2.7

관련 정보