Python安裝本地線程存儲

2024-03-29 09:12:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在安装pygitsnap库。这是我得到的输出的一部分。我不知道如何进行,任何帮助将不胜感激。你知道吗

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.

Tags: installhttpsorgpypiforeggpackageseasy
1条回答
网友
1楼 · 发布于 2024-03-29 09:12:26

你想安装什么平台的pysnap?
我从this github location成功下载并安装了pysnap

不过,我有windows10平台和python2.7。我没有linux来复制这个问题。你知道吗

如果您尝试在Linux上安装,根据flavor及其设置,有时swap设置为as/tmp,而有些应用程序无法写入/tmp。在您的情况下,它看起来确实像是试图写入/tmp并出错。你知道吗

你能试试pip install cryptography
看看它是否能够安装cryptography部件而没有问题?你知道吗

一旦该依赖关系失效,就可以安装pysnap,这样pysnap就不会试图安装cryptography

相关问题 更多 >