为cffi运行setup.py bdist_wheel加密失败的构建轮

巴拉

我正在尝试构建一个docker镜像。我有一个install.sh文件,它将在构建时运行。install.sh的内容如下

sudo apt-get install -y python-dev python3.5 python3.5-dev
# Install virtualenv
sudo wget https://bootstrap.pypa.io/ez_setup.py -O /tmp/ez_setup.py
sudo python3.5 /tmp/ez_setup.py
sudo easy_install-3.5 pip
pip3.5 install virtualenv
#pip install -U cffi
virtualenv -p python3.5 $HOME/venv/3.5
# Install pip packages
. $HOME/venv/3.5/bin/activate
pip install pyopenssl ndg-httpsclient pyasn1
pip install nose mock pytest coverage
CFLAGS="-O0" pip install lxml
deactivate

pip install pyopenssl ndg-httpsclient pyasn1执行时,我收到以下错误

running install_egg_info
Copying src/cryptography.egg-info to build/bdist.linux-x86_64/wheel/cryptography-1.1.1-py3.5.egg-info
running install_scripts
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-ytr1o8ux/cryptography/setup.py", line 318, in <module>
**keywords_with_side_effects(sys.argv)
File "/usr/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 213, in run
archive_basename = self.get_archive_basename()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 161, in get_archive_basename
impl_tag, abi_tag, plat_tag = self.get_tag()
File "/root/venv/3.5/lib/python3.5/site-packages/wheel/bdist_wheel.py", line 155, in get_tag
assert tag == supported_tags[0]
AssertionError

----------------------------------------
Running setup.py bdist_wheel for cffi
Failed building wheel for cryptography

看完此链接后,我尝试使用更新的车轮套件

wget http://nipy.bic.berkeley.edu/scipy_installers/wheel-0.24.0-py2.py3-none-any.whl
pip install wheel-0.24.0-py2.py3-non-any.whl

还是一样的错误。尽管出现此错误,但映像已成功构建。任何帮助将不胜感激。

提前致谢。

阿兰比

wheel如票证中所述,这似乎是与包装有关的问题https : //bitbucket.org/pypa/wheel/issues/146/wheel-building-fails-on-cpython-350b3

wheel在virtualenv中进行升级应该可以解决该问题(目前为版本0.26.0)。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

pip安装mysqlclient失败“正在运行mysqlclient的setup.py bdist_wheel ...错误”

python - setup.py sdist bdist_wheel

Python setup.py bdist_wheel 没有成功运行。安装 DRecPy

当 __init__.py 在 root 中时,使用 bdist_wheel 后 Python 轮不包含项目

为什么python setup.py在Travis CI上说无效命令'bdist_wheel'?

python setup.py sdist bdist_wheel 引发`TypeError: expected string or bytes-like object`

无法为pip安装pygame,因为为pygame运行vsetup.py bdist_wheel时发生错误

scipy的构建轮(setup.py):状态为“错误”

使用setuptools_scm运行从bdist_wheel软件包安装的应用程序失败,出现版本查找错误

Python setup.py - 运行 setup.py install 时不要构建轮子

如何从单个setup.py构建多个wheel文件?

运行setup.py时,如何获取Python wheel的文件名?

清理setup.py中的构建目录

从setup.py构建通用轮子

Python 3.5 setup.py egg_info失败,错误代码为1 [Linux]

python setup.py egg_info 失败,错误代码为 1

“ pip安装模型”-“ python setup.py egg_info”失败,错误代码为1

错误:“python setup.py egg_info”失败,错误代码为 1

“ python setup.py egg_info失败,错误代码为1

Ubuntu 16.04上box2d.py的构建轮失败

如何正确运行setup.py文件?

Google Cloud App Engine:云构建失败于“ python setup.py egg_info”

AWS EB CLI安装失败,显示“ python setup.py egg_info”失败,错误代码为“ 1”

如何告诉“setup.py”为构建的发行版包含来自我的根目录的文件?

安装“模式”时,命令“ python setup.py egg_info”失败,错误代码为1

Python多处理安装:命令“ python setup.py egg_info”失败,错误代码为1

无法安装pyzmail-“命令“ python setup.py egg_info”失败,错误代码为1”

使用pip安装pygame:命令“ python setup.py egg_info”失败,错误代码为1

提示安装“ python setup.py egg_info”的Pip安装失败,错误代码为1错误