Navigation

    Odoo 中文社区

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Odoo中文社区可以通过以下两个域名访问:shine-it.net , odoo.net.cn

    由于系统升迁的原因,本论坛部分较早期的内容存在格式和链接损坏失效的问题,并非本论坛系统本身的缺陷,望谅解

    本社区没有维护任何QQ群讨论组,任何与本社区同名的QQ群讨论组的言论与本社区无关!

    开发人员可以登录gitter讨论组: http://gitter.im/odoo-china/Talk, 需要github账号

    如果您登录系统碰到问题,请在微信公众号留言:

    如何解决win10安装python-ldap出错

    Odoo 安装指南
    2
    3
    3475
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • eremiter
      eremiter last edited by

      安装Microsoft Visual C++ Compiler for Python 2.7之后,再使用命令安装python-ldap,出现如下错误,搜索一下,没找到解决办法,从而odoo10无法启动了

      E:\python\indepence>pip install -r ./requirements.txt
      Collecting Babel==2.3.4 (from -r ./requirements.txt (line 1))
      Downloading Babel-2.3.4-py2.py3-none-any.whl (7.1MB)
      100% |████████████████████████████████| 7.1MB 107kB/s
      Collecting decorator==4.0.10 (from -r ./requirements.txt (line 2))
      Downloading decorator-4.0.10-py2.py3-none-any.whl
      Collecting docutils==0.12 (from -r ./requirements.txt (line 3))
      Downloading docutils-0.12.tar.gz (1.6MB)
      100% |████████████████████████████████| 1.6MB 409kB/s
      Collecting ebaysdk==2.1.4 (from -r ./requirements.txt (line 4))
      Downloading ebaysdk-2.1.4.tar.gz (40kB)
      100% |████████████████████████████████| 51kB 1.7MB/s
      Collecting feedparser==5.2.1 (from -r ./requirements.txt (line 5))
      Downloading feedparser-5.2.1.zip (1.2MB)
      100% |████████████████████████████████| 1.2MB 819kB/s
      Collecting gevent==1.2.1 (from -r ./requirements.txt (line 6))
      Downloading gevent-1.2.1-cp27-cp27m-win_amd64.whl (636kB)
      100% |████████████████████████████████| 645kB 819kB/s
      Collecting greenlet==0.4.10 (from -r ./requirements.txt (line 7))
      Downloading greenlet-0.4.10-cp27-cp27m-win_amd64.whl
      Collecting jcconv==0.2.3 (from -r ./requirements.txt (line 8))
      Downloading jcconv-0.2.3.tar.gz
      Collecting Jinja2==2.8 (from -r ./requirements.txt (line 9))
      Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB)
      100% |████████████████████████████████| 266kB 2.2MB/s
      Collecting lxml==3.5.0 (from -r ./requirements.txt (line 10))
      Downloading lxml-3.5.0-cp27-none-win_amd64.whl (3.4MB)
      100% |████████████████████████████████| 3.4MB 211kB/s
      Collecting Mako==1.0.4 (from -r ./requirements.txt (line 11))
      Downloading Mako-1.0.4.tar.gz (574kB)
      100% |████████████████████████████████| 583kB 939kB/s
      Collecting MarkupSafe==0.23 (from -r ./requirements.txt (line 12))
      Downloading MarkupSafe-0.23.tar.gz
      Collecting mock==2.0.0 (from -r ./requirements.txt (line 13))
      Downloading mock-2.0.0-py2.py3-none-any.whl (56kB)
      100% |████████████████████████████████| 61kB 1.3MB/s
      Collecting ofxparse==0.15 (from -r ./requirements.txt (line 14))
      Downloading ofxparse-0.15.tar.gz (46kB)
      100% |████████████████████████████████| 51kB 1.7MB/s
      Collecting passlib==1.6.5 (from -r ./requirements.txt (line 15))
      Downloading passlib-1.6.5-py2.py3-none-any.whl (317kB)
      100% |████████████████████████████████| 327kB 1.7MB/s
      Collecting Pillow==3.4.1 (from -r ./requirements.txt (line 16))
      Downloading Pillow-3.4.1-cp27-cp27m-win_amd64.whl (1.4MB)
      100% |████████████████████████████████| 1.4MB 547kB/s
      Collecting psutil==4.3.1 (from -r ./requirements.txt (line 17))
      Downloading psutil-4.3.1-cp27-none-win_amd64.whl (170kB)
      100% |████████████████████████████████| 174kB 1.6MB/s
      Collecting psycogreen==1.0 (from -r ./requirements.txt (line 18))
      Downloading psycogreen-1.0.tar.gz
      Collecting psycopg2==2.6.2 (from -r ./requirements.txt (line 19))
      Downloading psycopg2-2.6.2-cp27-none-win_amd64.whl (1.2MB)
      100% |████████████████████████████████| 1.2MB 544kB/s
      Collecting pydot==1.2.3 (from -r ./requirements.txt (line 20))
      Downloading pydot-1.2.3.tar.gz
      Collecting pyparsing==2.1.10 (from -r ./requirements.txt (line 21))
      Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)
      100% |████████████████████████████████| 61kB 1.9MB/s
      Collecting pyPdf==1.13 (from -r ./requirements.txt (line 22))
      Downloading pyPdf-1.13.tar.gz
      Collecting pyserial==3.1.1 (from -r ./requirements.txt (line 23))
      Downloading pyserial-3.1.1-py2.py3-none-any.whl (200kB)
      100% |████████████████████████████████| 204kB 2.2MB/s
      Collecting Python-Chart==1.39 (from -r ./requirements.txt (line 24))
      Downloading Python-Chart-1.39.tar.gz (76kB)
      100% |████████████████████████████████| 81kB 1.3MB/s
      Collecting python-dateutil==2.5.3 (from -r ./requirements.txt (line 25))
      Downloading python_dateutil-2.5.3-py2.py3-none-any.whl (201kB)
      100% |████████████████████████████████| 204kB 1.7MB/s
      Collecting python-ldap==2.4.32 (from -r ./requirements.txt (line 26))
      Downloading python-ldap-2.4.32.tar.gz (126kB)
      100% |████████████████████████████████| 133kB 1.7MB/s
      Collecting python-openid==2.2.5 (from -r ./requirements.txt (line 27))
      Downloading python-openid-2.2.5.tar.gz (301kB)
      100% |████████████████████████████████| 307kB 1.7MB/s
      Collecting pytz==2016.7 (from -r ./requirements.txt (line 28))
      Downloading pytz-2016.7-py2.py3-none-any.whl (480kB)
      100% |████████████████████████████████| 481kB 1.3MB/s
      Collecting pyusb==1.0.0 (from -r ./requirements.txt (line 29))
      Downloading PyUSB-1.0.0.tar.gz (52kB)
      100% |████████████████████████████████| 61kB 2.0MB/s
      Collecting PyYAML==3.12 (from -r ./requirements.txt (line 30))
      Downloading PyYAML-3.12-cp27-cp27m-win_amd64.whl (197kB)
      100% |████████████████████████████████| 204kB 1.7MB/s
      Collecting qrcode==5.3 (from -r ./requirements.txt (line 31))
      Downloading qrcode-5.3-py2.py3-none-any.whl
      Collecting reportlab==3.3.0 (from -r ./requirements.txt (line 32))
      Downloading reportlab-3.3.0-cp27-none-win_amd64.whl (2.1MB)
      100% |████████████████████████████████| 2.1MB 327kB/s
      Collecting requests==2.11.1 (from -r ./requirements.txt (line 33))
      Downloading requests-2.11.1-py2.py3-none-any.whl (514kB)
      100% |████████████████████████████████| 522kB 1.1MB/s
      Collecting six==1.10.0 (from -r ./requirements.txt (line 34))
      Downloading six-1.10.0-py2.py3-none-any.whl
      Collecting suds-jurko==0.6 (from -r ./requirements.txt (line 35))
      Downloading suds-jurko-0.6.tar.bz2 (143kB)
      100% |████████████████████████████████| 153kB 2.2MB/s
      Collecting vatnumber==1.2 (from -r ./requirements.txt (line 36))
      Downloading vatnumber-1.2.tar.gz
      Collecting vobject==0.9.3 (from -r ./requirements.txt (line 37))
      Downloading vobject-0.9.3.tar.gz (51kB)
      100% |████████████████████████████████| 51kB 1.6MB/s
      Collecting Werkzeug==0.11.11 (from -r ./requirements.txt (line 38))
      Downloading Werkzeug-0.11.11-py2.py3-none-any.whl (306kB)
      100% |████████████████████████████████| 307kB 1.1MB/s
      Collecting wsgiref==0.1.2 (from -r ./requirements.txt (line 39))
      Downloading wsgiref-0.1.2.zip
      Collecting XlsxWriter==0.9.3 (from -r ./requirements.txt (line 40))
      Downloading XlsxWriter-0.9.3-py2.py3-none-any.whl (136kB)
      100% |████████████████████████████████| 143kB 2.2MB/s
      Collecting xlwt==1.1.2 (from -r ./requirements.txt (line 41))
      Downloading xlwt-1.1.2-py2.py3-none-any.whl (99kB)
      100% |████████████████████████████████| 102kB 1.7MB/s
      Collecting funcsigs>=1; python_version < "3.3" (from mock==2.0.0->-r ./requirements.txt (line 13))
      Downloading funcsigs-1.0.2-py2.py3-none-any.whl
      Collecting pbr>=0.11 (from mock==2.0.0->-r ./requirements.txt (line 13))
      Downloading pbr-3.1.1-py2.py3-none-any.whl (99kB)
      100% |████████████████████████████████| 102kB 2.2MB/s
      Collecting beautifulsoup4 (from ofxparse==0.15->-r ./requirements.txt (line 14))
      Downloading beautifulsoup4-4.6.0-py2-none-any.whl (86kB)
      100% |████████████████████████████████| 92kB 1.5MB/s
      Requirement already satisfied: setuptools in d:\python27\lib\site-packages (from python-ldap==2.4.32->-r ./requirements.txt (line 26))
      Requirement already satisfied: pip>=1.4.1 in d:\python27\lib\site-packages (from reportlab==3.3.0->-r ./requirements.txt (line 32))
      Collecting python-stdnum (from vatnumber==1.2->-r ./requirements.txt (line 36))
      Downloading python-stdnum-1.7.tar.gz (411kB)
      100% |████████████████████████████████| 419kB 1.1MB/s
      Installing collected packages: pytz, Babel, decorator, docutils, lxml, requests, ebaysdk, feedparser, greenlet, gevent, jcconv, MarkupSafe, Jinja2, Mako, six, funcsigs, pbr, mock, beautifulsoup4, ofxparse, passlib, Pillow, psutil, psycogreen, psycopg2, pyparsing, pydot, pyPdf, pyserial, Python-Chart, python-dateutil, python-ldap, python-openid, pyusb, PyYAML, qrcode, reportlab, suds-jurko, python-stdnum, vatnumber, vobject, Werkzeug, wsgiref, XlsxWriter, xlwt
      Running setup.py install for docutils ... done
      Running setup.py install for ebaysdk ... done
      Running setup.py install for feedparser ... done
      Running setup.py install for jcconv ... done
      Running setup.py install for MarkupSafe ... done
      Running setup.py install for Mako ... done
      Running setup.py install for ofxparse ... done
      Running setup.py install for psycogreen ... done
      Running setup.py install for pydot ... done
      Running setup.py install for pyPdf ... done
      Running setup.py install for Python-Chart ... done
      Running setup.py install for python-ldap ... error
      Complete output from command d:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\hermit\appdata\local\temp\pip-build-dzpmlp\python-ldap\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\hermit\appdata\local\temp\pip-ixfbeq-record\install-record.txt --single-version-externally-managed --compile:
      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\lib.win-amd64-2.7
      copying Lib\ldapurl.py -> build\lib.win-amd64-2.7
      copying Lib\ldif.py -> build\lib.win-amd64-2.7
      copying Lib\dsml.py -> build\lib.win-amd64-2.7
      creating build\lib.win-amd64-2.7\ldap
      copying Lib\ldap_init_.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\async.py -> build\lib.win-amd64-2.7\ldap
      creating build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls_init_.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\deref.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\libldap.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\openldap.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\ppolicy.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\psearch.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\pwdpolicy.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\readentry.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\sessiontrack.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\simple.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\controls\sss.py -> build\lib.win-amd64-2.7\ldap\controls
      copying Lib\ldap\cidict.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\dn.py -> build\lib.win-amd64-2.7\ldap
      creating build\lib.win-amd64-2.7\ldap\extop
      copying Lib\ldap\extop_init_.py -> build\lib.win-amd64-2.7\ldap\extop
      copying Lib\ldap\extop\dds.py -> build\lib.win-amd64-2.7\ldap\extop
      copying Lib\ldap\filter.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\functions.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\ldapobject.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\logger.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\modlist.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\resiter.py -> build\lib.win-amd64-2.7\ldap
      copying Lib\ldap\sasl.py -> build\lib.win-amd64-2.7\ldap
      creating build\lib.win-amd64-2.7\ldap\schema
      copying Lib\ldap\schema_init_.py -> build\lib.win-amd64-2.7\ldap\schema
      copying Lib\ldap\schema\models.py -> build\lib.win-amd64-2.7\ldap\schema
      copying Lib\ldap\schema\subentry.py -> build\lib.win-amd64-2.7\ldap\schema
      copying Lib\ldap\schema\tokenizer.py -> build\lib.win-amd64-2.7\ldap\schema
      copying Lib\ldap\syncrepl.py -> build\lib.win-amd64-2.7\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 requirements to Lib\python_ldap.egg-info\requires.txt
      writing Lib\python_ldap.egg-info\PKG-INFO
      writing top-level names to Lib\python_ldap.egg-info\top_level.txt
      writing dependency_links to Lib\python_ldap.egg-info\dependency_links.txt
      warning: manifest_maker: standard file '-c' not found

      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\python_ldap.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\python_ldap.egg-info\SOURCES.txt'
      running build_ext
      building '_ldap' extension
      error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
      
      ----------------------------------------
      

      Command "d:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\hermit\appdata\local\temp\pip-build-dzpmlp\python-ldap\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record c:\users\hermit\appdata\local\temp\pip-ixfbeq-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\hermit\appdata\local\temp\pip-build-dzpmlp\python-ldap\

      1 Reply Last reply Reply Quote 0
      • J
        jalena last edited by jalena

        https://jalena.bcsytv.com/archives/1761

        这里有,看python安装部分!

        python安装

        eremiter 1 Reply Last reply Reply Quote 0
        • eremiter
          eremiter @jalena last edited by

          @jalena 谢谢热心的jalena

          1 Reply Last reply Reply Quote 0
          • First post
            Last post