Charmcrypto安装:make期间发生ImportError

时间:2018-10-27 06:37:48

标签: python-2.7 cryptography charm-crypto

Setup build/staging directories
set -x
set +x
Building the Charm Framework
/usr/bin/python3 setup.py build  
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.42.tar.gz
Traceback (most recent call last):
  File "/home/dslab/Downloads/Charm-Crypto-0.43/distribute_setup.py", line 143, in use_setuptools
    raise ImportError
ImportError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "setup.py", line 2, in <module>
    use_setuptools() #bootstrap installs Distribute if not installed
  File "/home/dslab/Downloads/Charm-Crypto-0.43/distribute_setup.py", line 145, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "/home/dslab/Downloads/Charm-Crypto-0.43/distribute_setup.py", line 124, in _do_download
    to_dir, download_delay)
  File "/home/dslab/Downloads/Charm-Crypto-0.43/distribute_setup.py", line 193, in download_setuptools
    src = urlopen(url)
  File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: SSL is required
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 1

我试图在Ubuntu 16.04上安装Charm-crypto python 3版本。 我已经安装了所有指定的依赖项,但是,该过程在制作过程中失败并显示以下错误。

因此,我无法继续进行。请帮忙。 提前致谢。

1 个答案:

答案 0 :(得分:0)

我将其安装在Ubuntu 18.4 LTS上,但是对我来说,解决方案是关注this网站。

这可能也有帮助:

sudo apt-get -y install python-dev
sudo apt-get -y install libboost-all-dev
sudo apt-get -y install libfreetype6-dev libpng-dev

您可能想查看this帖子。