- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我试图在 Digital Ocean Ubuntu 16.04 服务器中安装 pyopenssl 模块。我收到此错误“密码学构建轮失败”,随后出现一些错误。
Collecting pyopenssl
Using cached https://files.pythonhosted.org/packages/9e/de/f8342b68fa9e981d348039954657bdf681b2ab93de27443be51865ffa310/pyOpenSSL-19.1.0-py2.py3-none-any.whl
Collecting cryptography>=2.8 (from pyopenssl)
Using cached https://files.pythonhosted.org/packages/be/60/da377e1bed002716fb2d5d1d1cab720f298cb33ecff7bf7adea72788e4e4/cryptography-2.8.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six>=1.5.2 in /usr/local/lib/python3.6/dist-packages (from pyopenssl)
Requirement already satisfied (use --upgrade to upgrade): cffi!=1.11.3,>=1.8 in /usr/local/lib/python3.6/dist-packages (from cryptography>=2.8->pyopenssl)
Requirement already satisfied (use --upgrade to upgrade): pycparser in /usr/local/lib/python3.6/dist-packages (from cffi!=1.11.3,>=1.8->cryptography>=2.8->pyopenssl)
Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography: started
Running setup.py bdist_wheel for cryptography: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vxubdrh0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp7omz3s7mpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cryptography
creating build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.linux-x86_64-3.6/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.linux-x86_64-3.6/cryptography/x509
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching '.azure-pipelines'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files matching '*' found under directory '.azure-pipelines'
warning: no previously-included files matching '*' found under directory '.travis'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'rtd-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'
creating build/temp.linux-x86_64-3.6
generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-3.6/build
creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-x86_64-3.6/_openssl.c:22:24: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Running setup.py clean for cryptography
Failed to build cryptography
Installing collected packages: cryptography, pyopenssl
Found existing installation: cryptography 1.2.3
Not uninstalling cryptography at /usr/lib/python3/dist-packages, outside environment /usr
Running setup.py install for cryptography: started
Running setup.py install for cryptography: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-vxubdrh0/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cb9nh_qa-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/cryptography
copying src/cryptography/utils.py -> build/lib.linux-x86_64-3.6/cryptography
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files found matching 'vectors'
warning: no previously-included files matching '*' found under directory 'vectors'
warning: no previously-included files found matching 'azure-pipelines.yml'
warning: no previously-included files found matching '.azure-pipelines'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.travis'
warning: no previously-included files matching '*' found under directory '.azure-pipelines'
warning: no previously-included files matching '*' found under directory '.travis'
warning: no previously-included files found matching 'release.py'
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching 'codecov.yml'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'rtd-requirements.txt'
warning: no previously-included files found matching 'tox.ini'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.linux-x86_64-3.6/_padding.c'
creating build/temp.linux-x86_64-3.6
generating cffi module 'build/temp.linux-x86_64-3.6/_constant_time.c'
generating cffi module 'build/temp.linux-x86_64-3.6/_openssl.c'
building '_openssl' extension
creating build/temp.linux-x86_64-3.6/build
creating build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.6m -c build/temp.linux-x86_64-3.6/_openssl.c -o build/temp.linux-x86_64-3.6/build/temp.linux-x86_64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-x86_64-3.6/_openssl.c:22:24: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
在执行pip3 install cryptography
时也出现了这个问题,但是当我使用此命令添加所有依赖项时它就消失了 -
sudo apt-get install python-pip python-dev libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev
我在这里缺少什么。
最佳答案
设法以某种方式弄清楚自己。
apt-get install python3.6-dev
为我做到了。
虽然我做了sudo apt-get install python3-dev
,但由于某种原因问题仍然存在。
感谢 Hatshepsut 在 pyconfig.h missing during "pip install cryptography" 中的评论
关于python - DigitalOcean 中的 Pyopenssl 加密构建轮失败意味着什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59200737/
我在 digitalocean 托管中有一个站点,但从该站点发送电子邮件时遇到了一些问题。 我的网站建立在 wordpress 上,我正在尝试通过电子邮件提交申请。它在我的本地主机和我的服务器上运行
DigitalOcean 的浮动 IP 是一种保留与您的计算资源无关的公共 IP 地址的方式。它们提供了一种在您的资产之间快速重新路由流量的方法,而无需等待 DNS 更改生效。 诸如 Droplets
我正在在线学习本教程 https://simpleisbetterthancomplex.com/tutorial/2016/10/14/how-to-deploy-to-digital-ocean.
我有一个托管 Ubuntu 服务器的 DigitalOcean droplot,该服务器拒绝连接到所有相关域。我使用 ServerPilot 托管 WordPress 网站,该网站现在向我的服务器 I
我正在 DigitalOcean 上使用 CoreOs 和 Kubernetes 构建一个容器集群,我已经看到为了向世界公开 Pod,您必须创建一个类型为:LoadBalancer 的服务。我认为这是
DigitalOcean有很多one-click apps可用的。它们帮助您使用预安装的软件创建一个 Droplet。但我还没有找到任何关于它们的技术文档。 具体来说: 谁维护这些应用程序? (例如,
我使用 Kubeadm 和 digitalocean 上的 3 个 Droplet 创建了一个 Kubernetes 集群。 ...在为我正在处理的节点 mongodb pod 创建持久卷声明时,使用
我完成了这个 Digital Ocean 教程: https://www.digitalocean.com/community/tutorials/how-to-install-apache-tomc
我正在使用 DigitalOcean 为我的网站提供静态文件。我使用 Django 和 Postgres 作为数据库。我用 DigitalOcean Droplet 部署了我的网站,在 Digital
我在 centos 上使用 digitalocean 脚本,但它似乎不起作用。 https://www.digitalocean.com/community/tutorials/how-to-set-
我在 Digital Ocean 服务器上运行的 Magento 商店有问题。 这是我的液滴配置: 2GB Ram | 40GB SSD Disk | New York 2 | Ubuntu Ubun
DigitalOcean 的Container Registry为您在云中提供了一个私有空间来存储和分发您的 Docker 映像。除了提供图像存储库外,该服务还集成到 DigitalOcean 的其他
我尝试运行 apt-get install httpd安装 Apache HTTP 服务器,但出现以下错误: Package httpd is a virtual package provid
我尝试在 .bashrc 中设置环境变量, .profile , .bash_profile , /etc/environment以及 /etc/defaults/nginx但没有任何效果。仅限 /e
我有一个域 example.com,并且我想将一个子域 test.example.com 指向我的一个 droplets,而不必将域移动到 digital ocean 名称服务器。这可能吗?如何? 最
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 3年前关闭。 Improve thi
我正在尝试部署我的 jhipster应用程序在 DigitalOcean . 我已经创建了一个 Droplet,使用 ssh 连接到它并从 git 克隆了 jhipster 应用程序.现在我在服务器上
我在 Github 中创建了一个基于 Meteor 平台的新应用程序存储库。但是,我在将应用程序部署到我的 DigitalOcean 液滴时遇到了很大的困难。我正在尝试将我的 Github 存储库连接
我目前正在将 Digital Ocean 与 Amazon S3 SDK 结合使用,并且能够以编程方式上传和删除文件。然而,复制对象似乎是一个大问题。 首先,我的存储桶列表总是返回 0 个结果: s3
目前每次我运行管道时都会得到这个:Permission denied (publickey). 到目前为止的步骤: 在苹果机上: cd ~/.ssh ssh-keygen -t rsa -N '' -
我是一名优秀的程序员,十分优秀!