2015-11-02 85 views
2

我已經試過在Fedora上安裝Python的TripleSec庫22

pip install TripleSec 

,它似乎安裝罰款,但是當我運行triplesec在終端我收到以下錯誤:

import sha3 AttributeError: module object has no attribute '__get_builtin_constructor' 

我試過單獨安裝sha3,但沒有運氣。

有什麼特別的你需要嘗試嗎?

+0

Python TripleSec與Python 2.6,2.7和3.3兼容。女巫版本你有嗎? – HDJEMAI

+0

我的Python 2.7 – bshah

+0

OK,我想看看我是否有同樣的問題 – HDJEMAI

回答

2

所以首先我做一個虛擬機,我

的Fedora工作站22的全新安裝,然後我發現我已經安裝了Python 2.7.9和2.7.10不

所以,我下載的Python -2.7.10.tar.xz

鏈接:https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tar.xz

解壓縮源

輸入目錄Python- 2.7.10

begining在安裝之前,我們需要安裝的依賴關係:

  1. yum groupinstall "Development tools"
  2. yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
  3. enter the director Python-2.7.10 and type:

    ./configure

    make

    make install

現在下載PIP工具腳本文件: https://bootstrap.pypa.io/get-pip.py

然後安裝PIP:

python get-pip.py

最後一步:安裝Python TripleSec

pip install TripleSec

這裏是我的了: enter image description here

成功安裝後它

而當你在終端執行你有這樣的輸出(無提及的問題的錯誤):

enter image description here

+0

你能在終端上運行嗎? – bshah

+0

你是什麼意思?我沒有關於TripleSec的例子,當你嘗試安裝時,我對錯誤進行了回答,確切地說,你問的是什麼。 – HDJEMAI

+0

當您嘗試運行它時發生錯誤 - 如果您在終端中輸入「triplesec」。它不起作用,這就是爲什麼我問是否有特定的方式來安裝它在Fedora上。 – bshah