在Fedora 22上安装Python的TripleSec库

时间:2021-12-22 07:03:59

I've tried the

我试过的

pip install TripleSec

and it seems to install fine but when i run triplesec in terminal i get the following error:

它看起来安装的很好,但是当我在终端运行triplesec时,我得到了以下错误:

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

I've tried installing sha3 seperately as well but no luck.

我也试过安装sha3,但运气不好。

Is there something special you need to try?

你有什么特别的东西需要尝试吗?

1 个解决方案

#1


2  

So first I did a fresh install of Fedora Workstation 22 in a virtual machine for me

首先,我在虚拟机中重新安装了Fedora工作站22

And then I found that i have Python 2.7.9 installed and not 2.7.10

然后我发现我已经安装了Python 2.7.9,而不是2.7.10

So I downloaded Python-2.7.10.tar.xz

所以我下载Python-2.7.10.tar.xz

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

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

Decompress the source

解压缩源

Enter the directory Python-2.7.10

进入目录Python-2.7.10

before begining the installation, we have to install the dependancies:

在开始安装之前,我们必须安装以下设备:

  1. yum groupinstall "Development tools"
  2. 百胜groupinstall“开发工具”
  3. yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
  4. 安装zlib-devel -devel openssls -devel ncurses-devel - sqlite-devel readline-devel gdbm-devel dbd -devel libpcap-devel xz-devel
  5. enter the director Python-2.7.10 and type:

    输入director Python-2.7.10,输入:

    ./configure

    . / configure

    make

    使

    make install

    制作安装

Now download the script file for pip tool: https://bootstrap.pypa.io/get-pip.py

现在下载pip工具的脚本文件:https://bootstrap.pypa.io/get-pip.py

Then install pip:

然后pip安装:

python get-pip.py

python get-pip.py

Final step: install Python TripleSec

最后一步:安装Python TripleSec

pip install TripleSec

pip安装TripleSec

here is what i got: 在Fedora 22上安装Python的TripleSec库

以下是我得到的:

It's successfully installed

这是成功安装

And when you execute in terminal you have this output (WITHOUT THE ERRORS MENTIONED IN THE QUESTION):

当你在终端执行时,你有这个输出(没有问题中提到的错误):

在Fedora 22上安装Python的TripleSec库

#1


2  

So first I did a fresh install of Fedora Workstation 22 in a virtual machine for me

首先,我在虚拟机中重新安装了Fedora工作站22

And then I found that i have Python 2.7.9 installed and not 2.7.10

然后我发现我已经安装了Python 2.7.9,而不是2.7.10

So I downloaded Python-2.7.10.tar.xz

所以我下载Python-2.7.10.tar.xz

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

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

Decompress the source

解压缩源

Enter the directory Python-2.7.10

进入目录Python-2.7.10

before begining the installation, we have to install the dependancies:

在开始安装之前,我们必须安装以下设备:

  1. yum groupinstall "Development tools"
  2. 百胜groupinstall“开发工具”
  3. yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
  4. 安装zlib-devel -devel openssls -devel ncurses-devel - sqlite-devel readline-devel gdbm-devel dbd -devel libpcap-devel xz-devel
  5. enter the director Python-2.7.10 and type:

    输入director Python-2.7.10,输入:

    ./configure

    . / configure

    make

    使

    make install

    制作安装

Now download the script file for pip tool: https://bootstrap.pypa.io/get-pip.py

现在下载pip工具的脚本文件:https://bootstrap.pypa.io/get-pip.py

Then install pip:

然后pip安装:

python get-pip.py

python get-pip.py

Final step: install Python TripleSec

最后一步:安装Python TripleSec

pip install TripleSec

pip安装TripleSec

here is what i got: 在Fedora 22上安装Python的TripleSec库

以下是我得到的:

It's successfully installed

这是成功安装

And when you execute in terminal you have this output (WITHOUT THE ERRORS MENTIONED IN THE QUESTION):

当你在终端执行时,你有这个输出(没有问题中提到的错误):

在Fedora 22上安装Python的TripleSec库