无法使用python3.6 pip安装pyldap(Cannot install pyldap with python3.6 pip)
我正在尝试使用debian中的python3.6 pip安装
pyldap
:
pip install pyldap
但是我pip install pyldap
这个错误:---------------------------------------- Failed building wheel for pyldap Running setup.py clean for pyldap Failed to build pyldap Installing collected packages: pyldap Running setup.py install for pyldap ... error Complete output from command /home/ssc/VEnvs/newssc/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build- eqi2_xn9/pyldap/setup.py';f=getattr(tokenize, 'open', open) (__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qx8nvwny-record/install- record.txt --single-version-externally-managed --compile --install-headers /home/ssc/VEnvs/newssc/include/site/python3.6/pyldap: defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 libs: ldap_r running install running build running build_py file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found creating build creating build/lib.linux-x86_64-3.6 copying Lib/ldapurl.py -> build/lib.linux-x86_64-3.6 copying Lib/ldif.py -> build/lib.linux-x86_64-3.6 copying Lib/dsml.py -> build/lib.linux-x86_64-3.6 copying Lib/slapdtest.py -> build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/async.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/compat.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/dn.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/filter.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/functions.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/logger.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-3.6/ldap file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found running egg_info writing Lib/pyldap.egg-info/PKG-INFO writing dependency_links to Lib/pyldap.egg-info/dependency_links.txt writing requirements to Lib/pyldap.egg-info/requires.txt writing top-level names to Lib/pyldap.egg-info/top_level.txt file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found reading manifest file 'Lib/pyldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' warning: no files found matching 'Modules/LICENSE' writing manifest file 'Lib/pyldap.egg-info/SOURCES.txt' running build_ext building '_ldap' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/Modules x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-60vxex/python3.6-3.6.2=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.37 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python3.6m -I/home/ssc/VEnvs/newssc/include/python3.6m -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.6/Modules/LDAPObject.o x86_64-linux-gnu-gcc: error: /usr/share/dpkg/no-pie-compile.specs: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/home/ssc/VEnvs/newssc/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build- eqi2_xn9/pyldap/setup.py';f=getattr(tokenize, 'open', open) (__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qx8nvwny-record/install- record.txt --single-version-externally-managed --compile --install-headers /home/ssc/VEnvs/newssc/include/site/python3.6/pyldap" failed with error code 1 in /tmp/pip-build-eqi2_xn9/pyldap/
I'm trying to install
pyldap
using python3.6 pip in debian:
pip install pyldap
But I'm facing this error:---------------------------------------- Failed building wheel for pyldap Running setup.py clean for pyldap Failed to build pyldap Installing collected packages: pyldap Running setup.py install for pyldap ... error Complete output from command /home/ssc/VEnvs/newssc/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build- eqi2_xn9/pyldap/setup.py';f=getattr(tokenize, 'open', open) (__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qx8nvwny-record/install- record.txt --single-version-externally-managed --compile --install-headers /home/ssc/VEnvs/newssc/include/site/python3.6/pyldap: defines: HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R extra_compile_args: extra_objects: include_dirs: /usr/include /usr/include/sasl /usr/local/include /usr/local/include/sasl library_dirs: /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 libs: ldap_r running install running build running build_py file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found creating build creating build/lib.linux-x86_64-3.6 copying Lib/ldapurl.py -> build/lib.linux-x86_64-3.6 copying Lib/ldif.py -> build/lib.linux-x86_64-3.6 copying Lib/dsml.py -> build/lib.linux-x86_64-3.6 copying Lib/slapdtest.py -> build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/__init__.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/async.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/compat.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/__init__.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/deref.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/libldap.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/openldap.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/ppolicy.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/psearch.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/pwdpolicy.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/readentry.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/sessiontrack.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/simple.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/controls/sss.py -> build/lib.linux-x86_64-3.6/ldap/controls copying Lib/ldap/cidict.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/dn.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/extop/__init__.py -> build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/extop/dds.py -> build/lib.linux-x86_64-3.6/ldap/extop copying Lib/ldap/filter.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/functions.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/ldapobject.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/logger.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/modlist.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/resiter.py -> build/lib.linux-x86_64-3.6/ldap copying Lib/ldap/sasl.py -> build/lib.linux-x86_64-3.6/ldap creating build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/__init__.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/models.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/subentry.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/schema/tokenizer.py -> build/lib.linux-x86_64-3.6/ldap/schema copying Lib/ldap/syncrepl.py -> build/lib.linux-x86_64-3.6/ldap file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found running egg_info writing Lib/pyldap.egg-info/PKG-INFO writing dependency_links to Lib/pyldap.egg-info/dependency_links.txt writing requirements to Lib/pyldap.egg-info/requires.txt writing top-level names to Lib/pyldap.egg-info/top_level.txt file Lib/ldap.py (for module ldap) not found file Lib/ldap/controls.py (for module ldap.controls) not found file Lib/ldap/extop.py (for module ldap.extop) not found file Lib/ldap/schema.py (for module ldap.schema) not found reading manifest file 'Lib/pyldap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'Makefile' warning: no files found matching 'Modules/LICENSE' writing manifest file 'Lib/pyldap.egg-info/SOURCES.txt' running build_ext building '_ldap' extension creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/Modules x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-60vxex/python3.6-3.6.2=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=2.4.37 -IModules -I/usr/include -I/usr/include/sasl -I/usr/local/include -I/usr/local/include/sasl -I/usr/include/python3.6m -I/home/ssc/VEnvs/newssc/include/python3.6m -c Modules/LDAPObject.c -o build/temp.linux-x86_64-3.6/Modules/LDAPObject.o x86_64-linux-gnu-gcc: error: /usr/share/dpkg/no-pie-compile.specs: No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/home/ssc/VEnvs/newssc/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build- eqi2_xn9/pyldap/setup.py';f=getattr(tokenize, 'open', open) (__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-qx8nvwny-record/install- record.txt --single-version-externally-managed --compile --install-headers /home/ssc/VEnvs/newssc/include/site/python3.6/pyldap" failed with error code 1 in /tmp/pip-build-eqi2_xn9/pyldap/
原文:https://stackoverflow.com/questions/46515146
最满意答案
您是否需要vss锁定工具,如果有人签出文件,则其他人无法编辑文件?
如果你这样做,那么要知道几乎所有的源控制系统,如cvs,svn,git等允许多个用户编辑文件,并在以后合并更改,这将是Excel表的问题
如果你不这样做,那么简单的文件共享系统,如谷歌文档或Dropbox可能适合。
更新
Do you need the vss locking facility where if one person has a file checked out then other people are prevented from editing the file?
If you do then be aware that nearly all source control systems like cvs, svn, git etc. allow multiple users to edit the files, and merge the changes later, which will be a problem for Excel sheets
If you don't then simple file sharing systems like google docs or dropbox might suit.
Update
The Share Workbook option in the Tools menu suggests a way of multiple users editing the same document
相关问答
更多-
为什么地球上Excel不能处理同名的2个文件?(Why on earth can't Excel handle 2 files with the same name? [closed])[2022-05-17]
微软在这里说,这是由于连接的单元格的计算模糊。 如果你有一个单元格='[Book1.xlsx] Sheet1'!$ G $ 33,你有两本名为“Book1”的书籍,没有办法告诉你是什么意思。 这种以细胞名称连接的工作簿的方式依然存在于所有的版本中,我也非常怀疑它会改变。 Microsoft say here it's due to calculation ambiguity with linked cells. If you had a cell ='[Book1.xlsx]Sheet1'!$G$33 an ... -
我将使用PHPExcel编写文件(实际上,我使用它) http://phpexcel.codeplex.com/ 你可以试试 http://sourceforge.net/projects/phpexcelreader/ 阅读,但我没有阅读PHP中的Excel文件的经验,只写他们。 I would use PHPExcel for writing the files (in fact, I do use it) http://phpexcel.codeplex.com/ And you could try ...
-
我非常喜欢史蒂夫· 帕夫利娜的时间方法来摆脱繁琐的工作。 无论你有无聊的猴子工作要开裂,还是一堆垃圾在家里的衣柜里,你需要排序,这是适用的。 tl; dr的链接:Timeboxing意味着分配一个时间片,然后工作,切出什么会让你背后。 这是为了摆脱拖延的动机,不要让繁琐的任务占用更多的时间,而不是值得的。 除了繁琐的工作之外,还可以使用时间表来填补足够复杂的东西,这样您就不知道从哪里开始。 I quite like Steve Pavlina's timeboxing method to get rid o ...
-
WordPress下载管理器可帮助您以更有效的方式管理,跟踪和控制下载。 您可以设置访问级别,您可以通过复制和粘贴嵌入代码在帖子中的任何位置添加/嵌入可下载文件。 欲了解更多信息: http : //www.wpbeginner.com/plugins/how-manage-track-control-file-downloads-wordpress/ WordPress Download Manager helps you in managing, tracking and controlling you ...
-
事实证明,解决方案非常简单。 我将hstore初始化为一个空数组,问题解决了。 book.rb serialize :bookmark_count , ActiveRecord::Coders::Hstore.new({}) serialize :bookmark_count , ActiveRecord``::Coders::Hstore.new({}) It turns out the solution was pretty straight forward. I initialized the hs ...
-
是的,这是使用Interop的方式。 您需要做的第一件事是将Excel Interop库添加到项目中。 您可以通过创建新的Visual Studio解决方案,右键单击“ 引用” ,选择“ 添加引用” ,然后从“.NET”选项卡中选择“ Microsoft.Office.Interop.Excel”来完成此操作。 然后你需要为Excel添加一个using语句,为InteropServices添加一个(因为我们正在使用COM对象): using Excel = Microsoft.Office.Interop. ...
-
非编码人员的VSS替代方案可以共享excel文件等吗?(VSS alternatives for non coders to share excel files etc? [closed])[2022-02-14]
您是否需要vss锁定工具,如果有人签出文件,则其他人无法编辑文件? 如果你这样做,那么要知道几乎所有的源控制系统,如cvs,svn,git等允许多个用户编辑文件,并在以后合并更改,这将是Excel表的问题 如果你不这样做,那么简单的文件共享系统,如谷歌文档或Dropbox可能适合。 更新 “ 工具”菜单中的 “ 共享工作簿”选项提供了多个用户编辑同一文档的方法 Do you need the vss locking facility where if one person has a file checke ... -
最简单的 - 如果所有其他用户都可以ssh进入服务器,那么你可以在删除机器上使用svn+ssh://server/path/...来使用存储库。 有点简单 - 启动svnserve一个实例。 非平凡但最具扩展性和战略性的正确方式 - 使用SVN模块运行Web服务器。 幸运的是,有一个“for dummies”版本免费提供 。 The simplest -- if all other users can ssh into the server then you can just use svn+ssh://s ...
-
所有文件夹都包含隐藏的.svn文件夹。 移动它们时,是的,可能存在问题。 如果你只使用TortoiseSVN上下文菜单移动东西,你将不会遇到这些问题。 如果您更喜欢从IDE移动文件夹,请使用AnkhSVN ,这是一个非常棒的Visual Studio扩展 ,它将类似TortoiseSVN的选项集成到解决方案资源管理器窗口中,并跟踪IDE中所做的更改。 最后,如果您对Subversion处理移动,重命名和合并的方式不满意,您可能需要研究更现代的版本控制系统 。 Git非常棒,但需要付出一些努力才能学习,AFA ...
-
处理许多SharedPreferences的替代方案[关闭](Alternatives to deal with many SharedPreferences [closed])[2023-12-11]
我应该为我的应用程序中的所有变量定义单个“SharedPreferencesFile”还是使用多个文件,因为我现在正在做的还可以吗? 如果您可以按逻辑方式对它们进行分类,请执行此操作。 不要只是为了让它们以随机的方式分割成多个文件。 以后会引起很多混乱 我应该从我的app资源文件夹中的strings.xml中定义所有这些String FileName =“SharedPreferencesFile”,而不是将它们放在我的活动的开头,并将它们用作SharedPreferences settings = get ...