Q- สอบถามครับผม ตั้งตั้ง Module pythainlp ไม่ได้

แนะนำ สอบถาม ภาษา C สำหรับผู้เริ่มต้น ภาษา Java ภาษา Python

Moderator: mindphp, ผู้ดูแลกระดาน

tatiya
PHP Super Hero Member
PHP Super Hero Member
โพสต์: 534
ลงทะเบียนเมื่อ: 09/07/2018 9:35 am

Q- สอบถามครับผม ตั้งตั้ง Module pythainlp ไม่ได้

โพสต์โดย tatiya » 20/10/2018 6:16 pm

พอดีตอนนี้ผมกำลังทำงานเกี่ยวกับที่ต้องใช้งานตัว มูดูลนี้เพื่อจัดอันดับคำครับ แต่ผมไม่สามารถติดตั้งมูดูลได้ พอติดตั้งแล้วมันเอ่อเร่อครับ
ผมใช้ OS windows Vista นะครับ

โค้ด: เลือกทั้งหมด

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>pip

Usage:
  pip <command> [options]

Commands:
  install                     Install packages.
  uninstall                   Uninstall packages.
  freeze                      Output installed packages in requirements format.
  list                        List installed packages.
  show                        Show information about installed packages.
  search                      Search PyPI for packages.
  wheel                       Build wheels from your requirements.
  zip                         DEPRECATED. Zip individual packages.
  unzip                       DEPRECATED. Unzip individual packages.
  bundle                      DEPRECATED. Create pybundles.
  help                        Show help for commands.

General Options:
  -h, --help                  Show help.
  -v, --verbose               Give more output. Option is additive, and can be
                              used up to 3 times.
  -V, --version               Show version and exit.
  -q, --quiet                 Give less output.
  --log-file <path>           Path to a verbose non-appending log, that only
                              logs failures. This log is active by default at
                              C:\Documents and
                              Settings\Administrator\pip\pip.log.
  --log <path>                Path to a verbose appending log. This log is
                              inactive by default.
  --proxy <proxy>             Specify a proxy in the form
                              [user:passwd@]proxy.server:port.
  --timeout <sec>             Set the socket timeout (default 15 seconds).
  --exists-action <action>    Default action when a path already exists:
                              (s)witch, (i)gnore, (w)ipe, (b)ackup.
  --cert <path>               Path to alternate CA bundle.

C:\Documents and Settings\Administrator>pip install selenium
Downloading/unpacking selenium
Downloading/unpacking urllib3 (from selenium)
Installing collected packages: selenium, urllib3
Successfully installed selenium urllib3
Cleaning up...

C:\Documents and Settings\Administrator>pip install matplotlip
Downloading/unpacking matplotlip
  Could not find any downloads that satisfy the requirement matplotlip
Cleaning up...
No distributions at all found for matplotlip
Storing debug log for failure in C:\Documents and Settings\Administrator\pip\pip
.log

C:\Documents and Settings\Administrator>pip install pythainlp
Downloading/unpacking pythainlp
Downloading/unpacking requests (from pythainlp)
Downloading/unpacking nltk>=3.2.2 (from pythainlp)
  Running setup.py (path:C:\WINDOWS\TEMP\pip_build_Administrator\nltk\setup.py)
egg_info for package nltk

    warning: no files found matching 'README.txt'
    warning: no files found matching 'Makefile' under directory '*.txt'
    warning: no previously-included files matching '*~' found anywhere in distri
bution
Downloading/unpacking tinydb (from pythainlp)
  Downloading tinydb-3.11.1-py2.py3-none-any.whl
Downloading/unpacking marisa-trie (from pythainlp)
  Running setup.py (path:C:\WINDOWS\TEMP\pip_build_Administrator\marisa-trie\set
up.py) egg_info for package marisa-trie
    C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
ion: 'python_requires'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "C:\WINDOWS\TEMP\pip_build_Administrator\marisa-trie\setup.py", line
77, in <module>
        tests_require=["pytest", "hypothesis==2.0.0"])
      File "C:\Python34\lib\distutils\core.py", line 109, in setup
        _setup_distribution = dist = klass(attrs)
      File "C:\Python34\lib\site-packages\setuptools\dist.py", line 239, in __in
it__
        self.fetch_build_eggs(attrs.pop('setup_requires'))
      File "C:\Python34\lib\site-packages\setuptools\dist.py", line 263, in fetc
h_build_eggs
        parse_requirements(requires), installer=self.fetch_build_egg
      File "C:\Python34\lib\site-packages\pkg_resources.py", line 564, in resolv
e
        dist = best[req.key] = env.best_match(req, self, installer)
      File "C:\Python34\lib\site-packages\pkg_resources.py", line 802, in best_m
atch
        return self.obtain(req, installer) # try and download/install
      File "C:\Python34\lib\site-packages\pkg_resources.py", line 814, in obtain

        return installer(requirement)
      File "C:\Python34\lib\site-packages\setuptools\dist.py", line 313, in fetc
h_build_egg
        return cmd.easy_install(req)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", l
ine 593, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", l
ine 623, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", l
ine 809, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", l
ine 1015, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", l
ine 1000, in run_setup
        run_setup(setup_script, args)
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 50, in ru
n_setup
        lambda: execfile(
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 100, in r
un
        return func()
      File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 52, in <l
ambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "C:\Python34\lib\site-packages\setuptools\compat.py", line 78, in exe
cfile
        exec(compile(source, fn, 'exec'), globs, locs)
      File "setup.py", line 76, in <module>
        setup_requires=["pytest-runner"],
      File "C:\Python34\lib\distutils\core.py", line 109, in setup
        _setup_distribution = dist = klass(attrs)
      File "C:\Python34\lib\site-packages\setuptools\dist.py", line 243, in __in
it__
        _Distribution.__init__(self,attrs)
      File "C:\Python34\lib\distutils\dist.py", line 280, in __init__
        self.finalize_options()
      File "C:\Python34\lib\site-packages\setuptools\dist.py", line 276, in fina
lize_options
        ep.load()(self, ep.name, value)
      File "c:\windows\temp\easy_install-rl8fqgdb\pytest-runner-4.2\setuptools_s
cm-3.1.0-py3.4.egg\setuptools_scm\integration.py", line 10, in version_keyword
      File "c:\windows\temp\easy_install-rl8fqgdb\pytest-runner-4.2\setuptools_s
cm-3.1.0-py3.4.egg\setuptools_scm\version.py", line 66, in _warn_if_setuptools_o
utdated
    setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old
 (<12)
    Complete output from command python setup.py egg_info:
    C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
ion: 'python_requires'

  warnings.warn(msg)

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "C:\WINDOWS\TEMP\pip_build_Administrator\marisa-trie\setup.py", line 77,
in <module>

    tests_require=["pytest", "hypothesis==2.0.0"])

  File "C:\Python34\lib\distutils\core.py", line 109, in setup

    _setup_distribution = dist = klass(attrs)

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 239, in __init__


    self.fetch_build_eggs(attrs.pop('setup_requires'))

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 263, in fetch_bu
ild_eggs

    parse_requirements(requires), installer=self.fetch_build_egg

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 564, in resolve

    dist = best[req.key] = env.best_match(req, self, installer)

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 802, in best_match


    return self.obtain(req, installer) # try and download/install

  File "C:\Python34\lib\site-packages\pkg_resources.py", line 814, in obtain

    return installer(requirement)

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 313, in fetch_bu
ild_egg

    return cmd.easy_install(req)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
593, in easy_install

    return self.install_item(spec, dist.location, tmpdir, deps)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
623, in install_item

    dists = self.install_eggs(spec, download, tmpdir)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
809, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
1015, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "C:\Python34\lib\site-packages\setuptools\command\easy_install.py", line
1000, in run_setup

    run_setup(setup_script, args)

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 50, in run_se
tup

    lambda: execfile(

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 100, in run

    return func()

  File "C:\Python34\lib\site-packages\setuptools\sandbox.py", line 52, in <lambd
a>

    {'__file__':setup_script, '__name__':'__main__'}

  File "C:\Python34\lib\site-packages\setuptools\compat.py", line 78, in execfil
e

    exec(compile(source, fn, 'exec'), globs, locs)

  File "setup.py", line 76, in <module>

    setup_requires=["pytest-runner"],

  File "C:\Python34\lib\distutils\core.py", line 109, in setup

    _setup_distribution = dist = klass(attrs)

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 243, in __init__


    _Distribution.__init__(self,attrs)

  File "C:\Python34\lib\distutils\dist.py", line 280, in __init__

    self.finalize_options()

  File "C:\Python34\lib\site-packages\setuptools\dist.py", line 276, in finalize
_options

    ep.load()(self, ep.name, value)

  File "c:\windows\temp\easy_install-rl8fqgdb\pytest-runner-4.2\setuptools_scm-3
.1.0-py3.4.egg\setuptools_scm\integration.py", line 10, in version_keyword

  File "c:\windows\temp\easy_install-rl8fqgdb\pytest-runner-4.2\setuptools_scm-3
.1.0-py3.4.egg\setuptools_scm\version.py", line 66, in _warn_if_setuptools_outda
ted

setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<1
2)

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\WINDOWS\TEMP\pip
_build_Administrator\marisa-trie
Storing debug log for failure in C:\Documents and Settings\Administrator\pip\pip
.log

C:\Documents and Settings\Administrator>

  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ย้อนกลับไปยัง

ผู้ใช้งานขณะนี้

กำลังดูบอร์ดนี้: 5 และ บุคคลทั่วไป 0 ท่าน