在centos7上安裝anaconda3遇到的問題

2021-10-09 03:28:40 字數 3402 閱讀 5641

在centos7上安裝anaconda5.2.0的版本後,要啟動spyder,但是出現錯誤,啟動失敗:

(base) [dlou@ks0512anaconda01 ~]$ spyder

traceback (most recent call last):

file "/home/dlou/anaconda3/lib/python3.6/site-packages/qtpy/qtwebenginewidgets.py", line 22, in

from pyqt5.qtwebenginewidgets import qwebenginepage

importerror: libxss.so.1: cannot open shared object file: no such file or directory

during handling of the above exception, another exception occurred:

處理方法:

pyqt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

pyqt5_sip-4.19.19-cp36-cp36m-manylinux1_x86_64.whl

依次安裝:

(base) [dlou@ks0512anaconda01 downloads]$ pip install pyqt5_sip-4.19.19-cp36-cp36m-manylinux1_x86_64.whl 

processing ./pyqt5_sip-4.19.19-cp36-cp36m-manylinux1_x86_64.whl

distributed 1.21.8 requires msgpack, which is not installed.

installing collected packages: pyqt5-sip

successfully installed pyqt5-sip-4.19.19

(base) [dlou@ks0512anaconda01 downloads]$ pip install pyqt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl 

processing ./pyqt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

requirement already satisfied: pyqt5_sip<4.20,>=4.19.14 in /home/dlou/anaconda3/lib/python3.6/site-packages (from pyqt5==5.12.1) (4.19.19)

distributed 1.21.8 requires msgpack, which is not installed.

installing collected packages: pyqt5

successfully installed pyqt5-5.12.1

(base) [dlou@ks0512anaconda01 downloads]$ pip install pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl 

processing ./pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

requirement already satisfied: pyqt5>=5.12 in /home/dlou/anaconda3/lib/python3.6/site-packages (from pyqtwebengine==5.12.1) (5.12.1)

requirement already satisfied: pyqt5_sip<4.20,>=4.19.14 in /home/dlou/anaconda3/lib/python3.6/site-packages (from pyqt5>=5.12->pyqtwebengine==5.12.1) (4.19.19)

distributed 1.21.8 requires msgpack, which is not installed.

installing collected packages: pyqtwebengine

successfully installed pyqtwebengine-5.12.1

雖然有錯誤提示,執行spyder,可以正常啟動。

今天重新安裝了最新的anaconda,非常順利,安裝包也略有更換。

anaconda3-2020.07-linux-x86_64.sh

pyqt5_sip-4.19.19-cp38-cp38-manylinux1_x86_64.whl

pyqt5-5.12.1-5.12.2-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

安裝log如下:

(base) [dlou@ks0512anaconda01 downloads]$ 

(base) [dlou@ks0512anaconda01 downloads]$ pip install pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl 

processing ./pyqtwebengine-5.12.1-5.12.9-cp35.cp36.cp37.cp38-abi3-manylinux1_x86_64.whl

requirement already satisfied: pyqt5>=5.12 in /home/dlou/anaconda3/lib/python3.8/site-packages (from pyqtwebengine==5.12.1) (5.12.1)

requirement already satisfied: pyqt5_sip<4.20,>=4.19.14 in /home/dlou/anaconda3/lib/python3.8/site-packages (from pyqt5>=5.12->pyqtwebengine==5.12.1) (4.19.19)

installing collected packages: pyqtwebengine

successfully installed pyqtwebengine-5.12.1

(base) [dlou@ks0512anaconda01 downloads]$ spyder

spyder啟動正常。

centos7在非預設目錄下安裝anaconda3

前幾天伺服器崩了重灌,就重新部署了一下環境,在自己的非root帳號下和自定義目錄上安裝anaconda3。找乙個自己喜歡的目錄a作為安裝檔案目錄。在目錄下執行 wget這樣就得到了安裝檔案anaconda3 5.0.1 linux x86 64.sh 2.安裝 bash anaconda3 5.0....

在CentOS7上安裝RabbitMQ

首先需要安裝erlang,參考 安裝過程中會有提示,一路輸入 y 即可。完成後安裝rabbitmq yum install rabbitmq server 3.6.6 1.el7.noarch.rpm完成後啟動服務 service rabbitmq server start可以檢視服務狀態 這裡可以...

在CentOS7上安裝RabbitMQ

1.安裝erlang rpm uvh yum install erlang如果出現 error failed dependencies epel release is needed by erlang solutions 1.0 1.noarch表示阿里雲已配置erlang solutions 1....