python安装线程本地存储

时间:2016-03-09 16:25:09

标签: python cryptography install

我试图从github安装pysnap库。这是我得到的输出的一部分。我不知道如何继续,任何帮助将不胜感激。

Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pysnap-0.1.1-py2.7.egg
Processing dependencies for pysnap==0.1.1
Searching for cryptography>=1.2.2
Reading https://pypi.python.org/simple/cryptography/
Best match: cryptography 1.2.3
Downloading https://pypi.python.org/packages/source/c/cryptography/cryptography-1.2.3.tar.gz#md5=5474d2b3e8c7555a60852e48d2743f85
Processing cryptography-1.2.3.tar.gz
Writing /tmp/easy_install-7ZnmT5/cryptography-1.2.3/setup.cfg
Running cryptography-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7ZnmT5/cryptography-1.2.3/egg-dist-tmp-rcoXcx
_configtest.c:1:1: error: thread-local storage is unsupported for the current target
__thread int some_threadlocal_variable_42;

1 error generated.
error: unable to create target: 'No available targets are compatible with this triple, see -version for the
  available targets.'
1 error generated.

1 个答案:

答案 0 :(得分:0)

您尝试安装pysnap的平台是什么?  我从this github location

成功下载并安装了pysnap

我确实有Windows 10平台和python 2.7。我没有'有一个linux来复制这个问题。

如果您尝试在Linux上安装,根据风格及其设置,有时交换设置为/ tmp,某些应用程序无法写入/ tmp。在你的情况下,它看起来像是试图写入/ tmp并错误输出。

你能试试pip install cryptography
 并查看它是否能够安装cryptography部分而没有问题?

一旦该依赖关闭,您可以安装pysnap,以便pysnap不会尝试安装cryptography

相关问题