cocoNLP icon indicating copy to clipboard operation
cocoNLP copied to clipboard

pip install cocoNLP安装失败

Open fgz00 opened this issue 6 years ago • 28 comments

我实在anaconda上安装的,windows和linux都试了,均失败 Collecting cocoNLP Downloading https://files.pythonhosted.org/packages/6e/63/c4799852e34cc66a2f81e7604a14839de7a165403c3855d3b4edc191f558/cocoNLP-0.0.10.tar.gz (74kB) 100% |████████████████████████████████| 81kB 19kB/s

Complete output from command python setup.py egg_info:

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/arrow-0.13.0-py3.7.egg
Searching for regex
Reading https://pypi.org/simple/regex/
Downloading https://files.pythonhosted.org/packages/16/07/ee3e02770ed456a088b90da7c9b1e9aa227e3c956d37b845cef2aab93764/regex-2018.11.22.tar.gz#sha256=79a6a60ed1ee3b12eb0e828c01d75e3b743af6616d69add6c2fde1d425a4ba3f
Best match: regex 2018.11.22
Processing regex-2018.11.22.tar.gz
Writing /tmp/easy_install-h6r8nxmh/regex-2018.11.22/setup.cfg
Running regex-2018.11.22/setup.py -q bdist_egg --dist-dir /tmp/easy_install-h6r8nxmh/regex-2018.11.22/egg-dist-tmp-qpx_gk9a
regex_3/_regex.c: In function ‘fuzzy_match_group_fld’:
regex_3/_regex.c:11062:22: warning: ‘data.new_text_pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (!record_fuzzy(safe_state, data.fuzzy_type, data.new_text_pos -
                      ^
regex_3/_regex.c: In function ‘fuzzy_match_string_fld’:
regex_3/_regex.c:10852:22: warning: ‘data.new_text_pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (!record_fuzzy(safe_state, data.fuzzy_type, data.new_text_pos -
                      ^
In file included from /data/anaconda3/include/python3.7m/pytime.h:6:0,
                 from /data/anaconda3/include/python3.7m/Python.h:68,
                 from regex_3/_regex.c:46:
regex_3/_regex.c: In function ‘re_compile’:
/data/anaconda3/include/python3.7m/object.h:800:12: warning: ‘packed_code_list’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (_Py_DEC_REFTOTAL  _Py_REF_DEBUG_COMMA       \
            ^
regex_3/_regex.c:25175:15: note: ‘packed_code_list’ was declared here
     PyObject* packed_code_list;
               ^
regex_3/_regex.c: In function ‘basic_match’:
regex_3/_regex.c:11140:22: warning: ‘data.new_text_pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (!record_fuzzy(safe_state, data.fuzzy_type, data.new_text_pos -
                      ^
regex_3/_regex.c:11092:18: note: ‘data.new_text_pos’ was declared here
     RE_FuzzyData data;
                  ^
regex_3/_regex.c:10933:22: warning: ‘data.new_text_pos’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (!record_fuzzy(safe_state, data.fuzzy_type, data.new_text_pos -
                      ^
regex_3/_regex.c:10880:18: note: ‘data.new_text_pos’ was declared here
     RE_FuzzyData data;
                  ^
zip_safe flag not set; analyzing archive contents...
__pycache__._regex.cpython-37: module references __file__
creating /tmp/pip-install-v9kles9o/cocoNLP/.eggs/regex-2018.11.22-py3.7-linux-x86_64.egg
Extracting regex-2018.11.22-py3.7-linux-x86_64.egg to /tmp/pip-install-v9kles9o/cocoNLP/.eggs

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/regex-2018.11.22-py3.7-linux-x86_64.egg
Searching for phonenumbers
Reading https://pypi.org/simple/phonenumbers/
Downloading https://files.pythonhosted.org/packages/d9/62/a176cfaf6edb90b68ae3426cf4fb8fd98189df550e2143cafc66bb2c1b82/phonenumbers-8.10.2-py2.py3-none-any.whl#sha256=e8e5cec198d7aad477867c23aa897525a4c112971d4b378cc8c49bb57b975d7a
Best match: phonenumbers 8.10.2
Processing phonenumbers-8.10.2-py2.py3-none-any.whl
Installing phonenumbers-8.10.2-py2.py3-none-any.whl to /tmp/pip-install-v9kles9o/cocoNLP/.eggs

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/phonenumbers-8.10.2-py3.7.egg
Searching for phone
Reading https://pypi.org/simple/phone/
Downloading https://files.pythonhosted.org/packages/bd/8f/0209b160730490c22c050a9ea7adbcace4a046327ba0845b329749765d0a/phone-0.4.2.tar.gz#sha256=47b66e3ffe655be8f41ec6e2b63a040cfbc6dcb111b9f8c7c1f604a47af7edee
Best match: phone 0.4.2
Processing phone-0.4.2.tar.gz
Writing /tmp/easy_install-405bt72v/phone-0.4.2/setup.cfg
Running phone-0.4.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-405bt72v/phone-0.4.2/egg-dist-tmp-dsior2xg
creating /tmp/pip-install-v9kles9o/cocoNLP/.eggs/phone-0.4.2-py3.7.egg
Extracting phone-0.4.2-py3.7.egg to /tmp/pip-install-v9kles9o/cocoNLP/.eggs

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/phone-0.4.2-py3.7.egg
Searching for pyhanlp
Reading https://pypi.org/simple/pyhanlp/
Downloading https://files.pythonhosted.org/packages/e9/a6/489ce6a74965bd7b170499d9f25947dd1887ef45e519ea5218382c5ab9d5/pyhanlp-0.1.44.tar.gz#sha256=42319069afd791fb41f84cff5402ee644fa6953b6697e01934ccf9f9ea69199f
Best match: pyhanlp 0.1.44
Processing pyhanlp-0.1.44.tar.gz
Writing /tmp/easy_install-pj_eufy6/pyhanlp-0.1.44/setup.cfg
Running pyhanlp-0.1.44/setup.py -q bdist_egg --dist-dir /tmp/easy_install-pj_eufy6/pyhanlp-0.1.44/egg-dist-tmp-5kivclqo
zip_safe flag not set; analyzing archive contents...
pyhanlp.__pycache__.__init__.cpython-37: module references __file__
pyhanlp.__pycache__.util.cpython-37: module references __file__
pyhanlp.static.__pycache__.__init__.cpython-37: module references __file__
creating /tmp/pip-install-v9kles9o/cocoNLP/.eggs/pyhanlp-0.1.44-py3.7.egg
Extracting pyhanlp-0.1.44-py3.7.egg to /tmp/pip-install-v9kles9o/cocoNLP/.eggs

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/pyhanlp-0.1.44-py3.7.egg
Searching for jieba
Reading https://pypi.org/simple/jieba/
Downloading https://files.pythonhosted.org/packages/71/46/c6f9179f73b818d5827202ad1c4a94e371a29473b7f043b736b4dab6b8cd/jieba-0.39.zip#sha256=de385e48582a4862e55a9167334d0fbe91d479026e5dac40e59e22c08b8e883e
Best match: jieba 0.39
Processing jieba-0.39.zip
Writing /tmp/easy_install-ot_p4fga/jieba-0.39/setup.cfg
Running jieba-0.39/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ot_p4fga/jieba-0.39/egg-dist-tmp-cn9zspze
zip_safe flag not set; analyzing archive contents...
jieba.__pycache__._compat.cpython-37: module references __file__
jieba.analyse.__pycache__.tfidf.cpython-37: module references __file__
creating /tmp/pip-install-v9kles9o/cocoNLP/.eggs/jieba-0.39-py3.7.egg
Extracting jieba-0.39-py3.7.egg to /tmp/pip-install-v9kles9o/cocoNLP/.eggs

Installed /tmp/pip-install-v9kles9o/cocoNLP/.eggs/jieba-0.39-py3.7.egg
Searching for jpype1
Reading https://pypi.org/simple/jpype1/
Downloading https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz#sha256=6841523631874a731e1f94e1b1f130686ad3772030eaa3b6946256eeb1d10dd1
Best match: JPype1 0.6.3
Processing JPype1-0.6.3.tar.gz
Writing /tmp/easy_install-1_9moflx/JPype1-0.6.3/setup.cfg
Running JPype1-0.6.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1_9moflx/JPype1-0.6.3/egg-dist-tmp-k3g99am3
warning: no previously-included files matching '*.pyc' found anywhere in distribution
no previously-included directories found matching 'test/classes'
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
/tmp/easy_install-1_9moflx/JPype1-0.6.3/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
  FeatureNotice)
Traceback (most recent call last):
  File "/data/anaconda3/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/data/anaconda3/lib/python3.7/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/data/anaconda3/lib/python3.7/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/data/anaconda3/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/anaconda3/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/data/anaconda3/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/data/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/data/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/data/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/data/anaconda3/lib/python3.7/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/data/anaconda3/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/data/anaconda3/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/data/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/data/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/tmp/easy_install-1_9moflx/JPype1-0.6.3/setup.py", line 181, in build_extensions
  File "/data/anaconda3/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/data/anaconda3/lib/python3.7/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/data/anaconda3/lib/python3.7/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/data/anaconda3/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-1_9moflx/JPype1-0.6.3/setup.py", line 217, in <module>
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/data/anaconda3/lib/python3.7/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
    run_setup(setup_script, args)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/data/anaconda3/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/data/anaconda3/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-1_9moflx/JPype1-0.6.3/setup.py", line 217, in <module>
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/data/anaconda3/lib/python3.7/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-v9kles9o/cocoNLP/setup.py", line 75, in <module>
    cmdclass={'install': MyInstall},
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 139, in setup
    _install_setup_requires(attrs)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
    replace_conflicting=True,
  File "/data/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 777, in resolve
    replace_conflicting=replace_conflicting
  File "/data/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1060, in best_match
    return self.obtain(req, installer)
  File "/data/anaconda3/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1072, in obtain
    return installer(requirement)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
    return cmd.easy_install(req)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 702, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/data/anaconda3/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
Found native jni.h at /opt/jdk1.8.0_191/include

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-v9kles9o/cocoNLP/ You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.

fgz00 avatar Jan 09 '19 07:01 fgz00

I can reproduce the bug on ubuntu. The reason is that there is no sth like gcc in your OS. On ubuntu, you can type the following command in your terminal: apt-get install libffi-dev g++ libssl-dev then, pip install cocoNLP. If it hangs at the 'Using cached https://*****' you can type the following command in your terminal: pip --no-cache-dir install cocoNLP

fighting41love avatar Jan 09 '19 08:01 fighting41love

On windows, I will reproduce the bug and show the solution soon.

fighting41love avatar Jan 09 '19 08:01 fighting41love

On windows, you can refer the solution in the following link. https://stackoverflow.com/questions/34363477/pystan-compileerror-command-gcc-failed-with-exit-status-1-windows

fighting41love avatar Jan 09 '19 08:01 fighting41love

@fighting41love 感谢您的赖心解答!!!

fgz00 avatar Jan 10 '19 03:01 fgz00

@fighting41love image 麻烦再请教个问题:抽取地址能不能把这一串都拿出来(河南省郑州市金水区金水路83号院2号楼14号)

fgz00 avatar Jan 10 '19 03:01 fgz00

抽取手机号码时,把身份证号识别成shoujih手机号了。

fgz00 avatar Jan 10 '19 04:01 fgz00

print(ex.extract_cellphone(str,nation='CHN')) ['410105196904010537', '13673630861.'] 下面是我用正则表达式匹配的 import re re.search(r'^\d{15}|\d{18}|\d{17}(\d|X|x)',str).group() '410105196904010537' re.search(r'(^(\d{3,4}-)?\d{7,8})$|(13[0-9]{9})',str).group() '13673630861'

fgz00 avatar Jan 10 '19 04:01 fgz00

print(ex.extract_cellphone(str,nation='CHN')) ['410105196904010537', '13673630861.'] 下面是我用正则表达式匹配的 import re re.search(r'^\d{15}|\d{18}|\d{17}(\d|X|x)',str).group() '410105196904010537' re.search(r'(^(\d{3,4}-)?\d{7,8})$|(13[0-9]{9})',str).group() '13673630861'

Thanks for your valuable comment. I fixed the bug in the new version. pls reinstall cocoNLP pip install cocoNLP==0.0.11

fighting41love avatar Jan 10 '19 05:01 fighting41love

@fighting41love image 麻烦再请教个问题:抽取地址能不能把这一串都拿出来(河南省郑州市金水区金水路83号院2号楼14号) I will work on this problem in a few days. If you have some good solutions, pls leave a comment or commit your code to this repo. Thanks! @1315861791

fighting41love avatar Jan 10 '19 05:01 fighting41love

you new version also have bug,when it get cell phone numbuer ,there was a a point in the end. (e.g."13673630861.")

image

fgz00 avatar Jan 10 '19 07:01 fgz00

you new version also have bug,when it get cell phone numbuer ,there was a a point in the end. (e.g."13673630861.")

image

Sorry for the inconvenience. Fix the bug in new version..... pip install cocoNLP==0.0.12 If you are interested in this project, you are welcome to commit codes to this repo. Thanks!

fighting41love avatar Jan 10 '19 08:01 fighting41love

I encounter the same problem on my macOS, but I didn't find a solution for mac users, if possible, please help me solve it 😭

TianHongZXY avatar Apr 24 '19 09:04 TianHongZXY

I encounter the same problem on my macOS, but I didn't find a solution for mac users, if possible, please help me solve it 😭

which bug? Could you pls show me the details?

fighting41love avatar Apr 24 '19 10:04 fighting41love

Collecting cocoNLP Using cached https://files.pythonhosted.org/packages/8f/c3/59aaa0fcaf7afb0853f0ce21570452f40048628f6b3cd68423ee3e798d05/cocoNLP-0.0.13.tar.gz Complete output from command python setup.py egg_info: regex_3/_regex.c:2755:23: warning: unused function 'drop_guard_data' [-Wunused-function] Py_LOCAL_INLINE(BOOL) drop_guard_data(RE_State* state, ByteStack* stack) { ^ 1 warning generated. /anaconda3/lib/python3.6/site-packages/setuptools/dist.py:388: UserWarning: Normalizing '2019.04.14' to '2019.4.14' normalized_version, zip_safe flag not set; analyzing archive contents... regex.pycache._regex.cpython-36: module references file BASE_DIR is /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-5892fjhy/regex-2019.04.14

Installed /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/regex-2019.4.14-py3.6-macosx-10.7-x86_64.egg
Searching for phonenumbers
Reading https://pypi.org/simple/phonenumbers/
Downloading https://files.pythonhosted.org/packages/f8/3d/0b0632f2eecf1a1d01c94209669f546cb6d01f1ff3523fcb83f556c62d72/phonenumbers-8.10.10-py2.py3-none-any.whl#sha256=efac24159582581d8ac467b5fc23fea298b1c101e6947f37c2ab666ec18f6cde
Best match: phonenumbers 8.10.10
Processing phonenumbers-8.10.10-py2.py3-none-any.whl
Installing phonenumbers-8.10.10-py2.py3-none-any.whl to /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs

Installed /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/phonenumbers-8.10.10-py3.6.egg
Searching for phone
Reading https://pypi.org/simple/phone/
Downloading https://files.pythonhosted.org/packages/bd/8f/0209b160730490c22c050a9ea7adbcace4a046327ba0845b329749765d0a/phone-0.4.2.tar.gz#sha256=47b66e3ffe655be8f41ec6e2b63a040cfbc6dcb111b9f8c7c1f604a47af7edee
Best match: phone 0.4.2
Processing phone-0.4.2.tar.gz
Writing /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-ia07yo1p/phone-0.4.2/setup.cfg
Running phone-0.4.2/setup.py -q bdist_egg --dist-dir /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-ia07yo1p/phone-0.4.2/egg-dist-tmp-gntzc5rj
creating /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/phone-0.4.2-py3.6.egg
Extracting phone-0.4.2-py3.6.egg to /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs

Installed /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/phone-0.4.2-py3.6.egg
Searching for pyhanlp
Reading https://pypi.org/simple/pyhanlp/
Downloading https://files.pythonhosted.org/packages/c1/7d/f2b4e7882244f5e149f5b8408d9b40e910738883d7bcb17386dc77ac1f5e/pyhanlp-0.1.45.tar.gz#sha256=919c225263e1ed33019851d00637773885b7a0b67d9ab2664690288dddd41fbb
Best match: pyhanlp 0.1.45
Processing pyhanlp-0.1.45.tar.gz
Writing /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-jk97ho13/pyhanlp-0.1.45/setup.cfg
Running pyhanlp-0.1.45/setup.py -q bdist_egg --dist-dir /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-jk97ho13/pyhanlp-0.1.45/egg-dist-tmp-9bh9bx8m
zip_safe flag not set; analyzing archive contents...
pyhanlp.__pycache__.__init__.cpython-36: module references __file__
pyhanlp.__pycache__.util.cpython-36: module references __file__
pyhanlp.static.__pycache__.__init__.cpython-36: module references __file__
creating /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/pyhanlp-0.1.45-py3.6.egg
Extracting pyhanlp-0.1.45-py3.6.egg to /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs

Installed /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/.eggs/pyhanlp-0.1.45-py3.6.egg
Searching for jpype1
Reading https://pypi.org/simple/jpype1/
Downloading https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz#sha256=6841523631874a731e1f94e1b1f130686ad3772030eaa3b6946256eeb1d10dd1
Best match: JPype1 0.6.3
Processing JPype1-0.6.3.tar.gz
Writing /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/setup.cfg
Running JPype1-0.6.3/setup.py -q bdist_egg --dist-dir /var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/egg-dist-tmp-r52yb5pz
warning: no previously-included files matching '*.pyc' found anywhere in distribution
no previously-included directories found matching 'test/classes'
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from native/python/jpype_python.cpp:19:
In file included from native/python/include/jpype_python.h:24:
native/common/include/jpype.h:107:10: fatal error: 'map' file not found
#include <map>
         ^~~~~
1 warning and 1 error generated.
/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
  FeatureNotice)
Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/anaconda3/lib/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/anaconda3/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/anaconda3/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/setup.py", line 181, in build_extensions
  File "/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/anaconda3/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/setup.py", line 217, in <module>
  File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1138, in run_setup
    run_setup(setup_script, args)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/easy_install-yiryf2x2/JPype1-0.6.3/setup.py", line 217, in <module>
  File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup
    return distutils.core.setup(**attrs)
  File "/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/setup.py", line 75, in <module>
    cmdclass={'install': MyInstall},
  File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 128, in setup
    _install_setup_requires(attrs)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 504, in fetch_build_eggs
    replace_conflicting=True,
  File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 774, in resolve
    replace_conflicting=replace_conflicting
  File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1057, in best_match
    return self.obtain(req, installer)
  File "/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1069, in obtain
    return installer(requirement)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 571, in fetch_build_egg
    return cmd.easy_install(req)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 699, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 884, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1152, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1140, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3d/vjjgd34s5kd3cf_ssknv5r300000gn/T/pip-install-_942dvn5/cocoNLP/

TianHongZXY avatar Apr 24 '19 11:04 TianHongZXY

I think the error was caused by native/common/include/jpype.h:107:10: fatal error: 'map' file not found #include <map> ^~~~~ 1 warning and 1 error generated.

TianHongZXY avatar Apr 24 '19 11:04 TianHongZXY

I think the error was caused by native/common/include/jpype.h:107:10: fatal error: 'map' file not found #include <map> ^~~~~ 1 warning and 1 error generated.

Sorry for the late response. I think the bug is caused by the gcc. Could you pls try: conda install gcc in your terminal? Pls refer: https://github.com/stan-dev/pystan/issues/378

fighting41love avatar May 08 '19 02:05 fighting41love

抱歉, 我用的是win10, 像楼主提供的网址操作,可是出现了下面的bug, C:\Users\yao\Desktop\cocoNLP>python setup.py build warning: no previously-included files matching '*.pyc' found anywhere in distribution no previously-included directories found matching 'test\classes' C:\Users\yao\AppData\Local\Temp\easy_install-hxbjj3_f\JPype1-0.6.3\setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access FeatureNotice) In file included from native\common\include/jpype.h:87:0, from native\common\jp_array.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_array.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_arrayclass.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_arrayclass.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_class.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_class.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_classbase.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_classbase.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_env.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_env.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_field.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_field.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_invocationhandler.cpp:1: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_invocationhandler.cpp:1:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_javaenv.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_javaenv.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_javaenv_autogen.cpp:21: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_javaenv_autogen.cpp:21:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_jniutil.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_jniutil.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_method.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_method.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_methodoverload.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_methodoverload.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_monitor.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_monitor.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_object.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_object.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_objecttypes.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_objecttypes.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_primitivetypes.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_primitivetypes.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_primitivetypes_autogen.cpp:22: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_primitivetypes_autogen.cpp:22:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1824:0, from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12, from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4, from native\common\jp_primitivetypes_autogen.cpp:29: D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:15:77: note: #pragma message: D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION") ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_proxy.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_proxy.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_reference.cpp:1: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_reference.cpp:1:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_referencequeue.cpp:1: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_referencequeue.cpp:1:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_typemanager.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_typemanager.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_typename.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_typename.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\common\jp_voidtype.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\common\jp_voidtype.cpp:17:0: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\jpype_javaarray.cpp:18: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\jpype_javaarray.cpp:18: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\jpype_javaclass.cpp:18: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\jpype_javaclass.cpp:18: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\jpype_javanio.cpp:18: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\jpype_javanio.cpp:18: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\jpype_module.cpp:18: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\jpype_module.cpp:18: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\jpype_python.cpp:19: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\jpype_python.cpp:19: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarraytypes.h:1824:0, from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/ndarrayobject.h:12, from D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/arrayobject.h:4, from native\python\jpype_python.cpp:23: D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:15:77: note: #pragma message: D:\Anaconda3\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION") ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\pythonenv.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\pythonenv.cpp:17: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\py_class.cpp:18: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\py_class.cpp:18: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\py_field.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\py_field.cpp:17: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\py_hostenv.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\py_hostenv.cpp:17: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\py_method.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\py_method.cpp:17: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^ In file included from native\common\include/jpype.h:87:0, from native\python\include/jpype_python.h:24, from native\python\py_monitor.cpp:17: native\jni_include/jni.h:79:0: warning: "JNICALL" redefined #define JNICALL __stdcall ^ In file included from native\python\include/jpype_python.h:24:0, from native\python\py_monitor.cpp:17: native\common\include/jpype.h:83:0: note: this is the location of the previous definition #define JNICALL ^

Installed c:\users\yao\desktop\coconlp.eggs\jpype1-0.6.3-py3.7-win-amd64.egg running build running build_py copying cocoNLP\extractor.py -> build\lib\cocoNLP running egg_info writing cocoNLP.egg-info\PKG-INFO writing dependency_links to cocoNLP.egg-info\dependency_links.txt writing requirements to cocoNLP.egg-info\requires.txt writing top-level names to cocoNLP.egg-info\top_level.txt reading manifest file 'cocoNLP.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'cocoNLP\config' writing manifest file 'cocoNLP.egg-info\SOURCES.txt' creating build\lib\cocoNLP\config copying cocoNLP\config.DS_Store -> build\lib\cocoNLP\config creating build\lib\cocoNLP\config\basic creating build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp.DS_Store -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\LunarSolarConverter.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\README.md -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\RangeTimeEnum.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\StringPreHandler.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\Test.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimeNormalizer.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimePoint.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimeUnit.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp_init_.py -> build\lib\cocoNLP\config\basic\time_nlp creating build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\PKG-INFO -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\SOURCES.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\dependency_links.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\not-zip-safe -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\requires.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\top_level.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO creating build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\PKG-INFO -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\SOURCES.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\dependency_links.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\not-zip-safe -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\requires.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\top_level.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info creating build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\Test.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache__init_.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache__init_.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ creating build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource_init_.py -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\holi_lunar.json -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\holi_solar.json -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\reg.pkl -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\regex.txt -> build\lib\cocoNLP\config\basic\time_nlp\resource creating build\lib\cocoNLP\config\basic\time_nlp\resource_pycache_ copying cocoNLP\config\basic\time_nlp\resource_pycache__init_.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp\resource_pycache_ creating build\lib\cocoNLP\config\phrase copying cocoNLP\config\phrase\rake.py -> build\lib\cocoNLP\config\phrase creating build\lib\cocoNLP\config\phrase_pycache_ copying cocoNLP\config\phrase_pycache_\rake.cpython-36.pyc -> build\lib\cocoNLP\config\phrase_pycache_ creating build\lib\cocoNLP\config\phrase\data copying cocoNLP\config\phrase\data\stopwords.txt -> build\lib\cocoNLP\config\phrase\data

DiffYao avatar Jun 07 '19 04:06 DiffYao

DeardeMacBook-Pro:cocoNLP hey$ from cocoNLP.extractor import extractor from: can't read /var/mail/cocoNLP.extractor

HOW about this question?thank you so much!

DearSlim520 avatar Jul 25 '19 06:07 DearSlim520

@TianHongZXY hi, I have the same problem as you on my Mac, and have you solved your problem?

WMT123 avatar Aug 22 '19 08:08 WMT123

@fighting41love hi I installed GCC and jpype1 as you said before, as follows: GCC 4.9 Jpype1 0.6 MacOS Mojave 10.14.6 But with PIP install cocoNLP, the following problems happened: `Collecting cocoNLP Using cached https://files.pythonhosted.org/packages/8f/c3/59aaa0fcaf7afb0853f0ce21570452f40048628f6b3cd68423ee3e798d05/cocoNLP-0.0.13.tar.gz ERROR: Command errored out with exit status 1: command: /Users/wmt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/setup.py'"'"'; file='"'"'/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/ Complete output (182 lines): /Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py:474: UserWarning: Normalizing '2019.08.19' to '2019.8.19' normalized_version, zip_safe flag not set; analyzing archive contents... regex.pycache._regex.cpython-36: module references file BASE_DIR is /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-6rmc9mz2/regex-2019.08.19

Installed /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/.eggs/regex-2019.8.19-py3.6-macosx-10.7-x86_64.egg
Searching for pyhanlp
Reading https://pypi.org/simple/pyhanlp/
Downloading https://files.pythonhosted.org/packages/db/78/5e20dadc4b0e63f0c0b8feb6b752e1d47ba8f02dba269e656cf186448fe1/pyhanlp-0.1.48.tar.gz#sha256=61c2358d2803d06da3d544664febf210590df662d4c10cc01aa6c6c2bb4456e4
Best match: pyhanlp 0.1.48
Processing pyhanlp-0.1.48.tar.gz
Writing /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-l6jz8z01/pyhanlp-0.1.48/setup.cfg
Running pyhanlp-0.1.48/setup.py -q bdist_egg --dist-dir /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-l6jz8z01/pyhanlp-0.1.48/egg-dist-tmp-t5ekftqb
zip_safe flag not set; analyzing archive contents...
pyhanlp.__pycache__.__init__.cpython-36: module references __file__
pyhanlp.__pycache__.util.cpython-36: module references __file__
pyhanlp.static.__pycache__.__init__.cpython-36: module references __file__
creating /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/.eggs/pyhanlp-0.1.48-py3.6.egg
Extracting pyhanlp-0.1.48-py3.6.egg to /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/.eggs

Installed /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/.eggs/pyhanlp-0.1.48-py3.6.egg
Searching for jpype1>=0.7.0
Reading https://pypi.org/simple/jpype1/
Downloading https://files.pythonhosted.org/packages/28/63/784834e8a24ec2e1ad7f703c3dc6c6fb372a77cc68a2fdff916e18a4449e/JPype1-0.7.0.tar.gz#sha256=1630439d5b0fb49e2878b43a1a1f074f9d4f46520f525569e14f1f0f9399f871
Best match: JPype1 0.7.0
Processing JPype1-0.7.0.tar.gz
Writing /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/setup.cfg
Running JPype1-0.7.0/setup.py -q bdist_egg --dist-dir /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/egg-dist-tmp-pugkvpl7
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from build/src/jp_thunk.cpp:1:
In file included from build/src/jp_thunk.h:3:
native/common/include/jpype.h:82:10: fatal error: 'map' file not found
#include <map>
         ^~~~~
1 warning and 1 error generated.
/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'use_scm_version'
  warnings.warn(msg)
/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/setupext/build_ext.py:85: FeatureNotice: Turned ON Numpy support for fast Java array access
  FeatureNotice)
Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/setupext/build_ext.py", line 95, in build_extensions
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/setup.py", line 54, in <module>
    classifiers=[
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/Users/wmt/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-e8zrzwmb/JPype1-0.7.0/setup.py", line 54, in <module>
    classifiers=[
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-459l323f/cocoNLP/setup.py", line 75, in <module>
    cmdclass={'install': MyInstall},
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 719, in fetch_build_eggs
    replace_conflicting=True,
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 786, in fetch_build_egg
    return cmd.easy_install(req)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
  including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class
  including thunk build/lib/org.jpype.jar
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. `

If you can, please help me, I really need this ~

WMT123 avatar Aug 22 '19 08:08 WMT123

@WMT123 You can try open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg in your terminal

TianHongZXY avatar Aug 22 '19 09:08 TianHongZXY

@TianHongZXY Thank you for your prompt reply!

And I installed this as you said, but the same error occurred as before.

`Collecting cocoNLP Using cached https://files.pythonhosted.org/packages/8f/c3/59aaa0fcaf7afb0853f0ce21570452f40048628f6b3cd68423ee3e798d05/cocoNLP-0.0.13.tar.gz ERROR: Command errored out with exit status 1: command: /Users/wmt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/setup.py'"'"'; file='"'"'/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/ Complete output (182 lines): /Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py:474: UserWarning: Normalizing '2019.08.19' to '2019.8.19' normalized_version, zip_safe flag not set; analyzing archive contents... regex.pycache._regex.cpython-36: module references file BASE_DIR is /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-mbtf0djg/regex-2019.08.19

Installed /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/.eggs/regex-2019.8.19-py3.6-macosx-10.7-x86_64.egg
Searching for pyhanlp
Reading https://pypi.org/simple/pyhanlp/
Downloading https://files.pythonhosted.org/packages/db/78/5e20dadc4b0e63f0c0b8feb6b752e1d47ba8f02dba269e656cf186448fe1/pyhanlp-0.1.48.tar.gz#sha256=61c2358d2803d06da3d544664febf210590df662d4c10cc01aa6c6c2bb4456e4
Best match: pyhanlp 0.1.48
Processing pyhanlp-0.1.48.tar.gz
Writing /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-4ctu4d64/pyhanlp-0.1.48/setup.cfg
Running pyhanlp-0.1.48/setup.py -q bdist_egg --dist-dir /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-4ctu4d64/pyhanlp-0.1.48/egg-dist-tmp-_rrilbg0
zip_safe flag not set; analyzing archive contents...
pyhanlp.__pycache__.__init__.cpython-36: module references __file__
pyhanlp.__pycache__.util.cpython-36: module references __file__
pyhanlp.static.__pycache__.__init__.cpython-36: module references __file__
creating /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/.eggs/pyhanlp-0.1.48-py3.6.egg
Extracting pyhanlp-0.1.48-py3.6.egg to /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/.eggs

Installed /private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/.eggs/pyhanlp-0.1.48-py3.6.egg
Searching for jpype1>=0.7.0
Reading https://pypi.org/simple/jpype1/
Downloading https://files.pythonhosted.org/packages/28/63/784834e8a24ec2e1ad7f703c3dc6c6fb372a77cc68a2fdff916e18a4449e/JPype1-0.7.0.tar.gz#sha256=1630439d5b0fb49e2878b43a1a1f074f9d4f46520f525569e14f1f0f9399f871
Best match: JPype1 0.7.0
Processing JPype1-0.7.0.tar.gz
Writing /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/setup.cfg
Running JPype1-0.7.0/setup.py -q bdist_egg --dist-dir /var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/egg-dist-tmp-e78uwzue
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from build/src/jp_thunk.cpp:1:
In file included from build/src/jp_thunk.h:3:
native/common/include/jpype.h:82:10: fatal error: 'map' file not found
#include <map>
         ^~~~~
1 warning and 1 error generated.
/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'use_scm_version'
  warnings.warn(msg)
/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/setupext/build_ext.py:85: FeatureNotice: Turned ON Numpy support for fast Java array access
  FeatureNotice)
Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 118, in _compile
    extra_postargs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/ccompiler.py", line 909, in spawn
    spawn(cmd, dry_run=self.dry_run)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/spawn.py", line 36, in spawn
    _spawn_posix(cmd, search_path, dry_run=dry_run)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/spawn.py", line 159, in _spawn_posix
    % (cmd, exit_status))
distutils.errors.DistutilsExecError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
    _build_ext.build_ext.run(self)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/setupext/build_ext.py", line 95, in build_extensions
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions
    self.build_extension(ext)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/setup.py", line 54, in <module>
    classifiers=[
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/Users/wmt/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/easy_install-vndn_f_u/JPype1-0.7.0/setup.py", line 54, in <module>
    classifiers=[
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup
    return distutils.core.setup(**attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'gcc' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/jg/8ts83b_n7qbdxt4ckyj2htpw0000gp/T/pip-install-44bktw0h/cocoNLP/setup.py", line 75, in <module>
    cmdclass={'install': MyInstall},
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
    _install_setup_requires(attrs)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 719, in fetch_build_eggs
    replace_conflicting=True,
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 782, in resolve
    replace_conflicting=replace_conflicting
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1065, in best_match
    return self.obtain(req, installer)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1077, in obtain
    return installer(requirement)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/dist.py", line 786, in fetch_build_egg
    return cmd.easy_install(req)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/Users/wmt/anaconda3/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
  including thunk build/lib/org/jpype/classloader/JPypeClassLoader.class
  including thunk build/lib/org.jpype.jar
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. `

WMT123 avatar Aug 23 '19 02:08 WMT123

安装失败

pip --no-cache-dir install cocoNLP Collecting cocoNLP Downloading https://files.pythonhosted.org/packages/8f/c3/59aaa0fcaf7afb0853f0ce21570452f40048628f6b3cd68423ee3e798d05/cocoNLP-0.0.13.tar.gz (88kB) |████████████████████████████████| 92kB 18kB/s ERROR: Command errored out with exit status 1: command: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/pip-install-gmd6szhv/cocoNLP/setup.py'"'"'; file='"'"'/private/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/pip-install-gmd6szhv/cocoNLP/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/pip-install-gmd6szhv/cocoNLP/pip-egg-info cwd: /private/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/pip-install-gmd6szhv/cocoNLP/ Complete output (143 lines): xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun /usr/local/lib/python3.7/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '2019.08.19' to '2019.8.19' normalized_version, Traceback (most recent call last): File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 118, in _compile extra_postargs) File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 909, in spawn spawn(cmd, dry_run=self.dry_run) File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 36, in spawn _spawn_posix(cmd, search_path, dry_run=dry_run) File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/spawn.py", line 159, in _spawn_posix % (cmd, exit_status)) distutils.errors.DistutilsExecError: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
    self.run_command(cmd)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 78, in run
    _build_ext.run(self)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 339, in run
    self.build_extensions()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 448, in build_extensions
    self._build_extensions_serial()
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 473, in _build_extensions_serial
    self.build_extension(ext)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 199, in build_extension
    _build_ext.build_extension(self, ext)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/command/build_ext.py", line 533, in build_extension
    depends=ext.depends)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/ccompiler.py", line 574, in compile
    self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/unixccompiler.py", line 120, in _compile
    raise CompileError(msg)
distutils.errors.CompileError: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/easy_install-ctaf9br7/regex-2019.08.19/setup.py", line 53, in <module>
    include_package_data=True,
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/local/lib/python3.7/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.7/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/easy_install-ctaf9br7/regex-2019.08.19/setup.py", line 53, in <module>
    include_package_data=True,
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 140, in setup
    return distutils.core.setup(**attrs)
  File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: command 'clang' failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/pip-install-gmd6szhv/cocoNLP/setup.py", line 75, in <module>
    cmdclass={'install': MyInstall},
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 139, in setup
    _install_setup_requires(attrs)
  File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 134, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 514, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 777, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1060, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 1072, in obtain
    return installer(requirement)
  File "/usr/local/lib/python3.7/site-packages/setuptools/dist.py", line 581, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 702, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python3.7/site-packages/setuptools/command/easy_install.py", line 1143, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: command 'clang' failed with exit status 1
BASE_DIR is /var/folders/9q/rd0bzwzs5wx_fm3x9m1gyn8m0000gn/T/easy_install-ctaf9br7/regex-2019.08.19
----------------------------------------

ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ljm516 avatar Oct 29 '19 09:10 ljm516

装不上!!!!!!!!!!!!!1

yuppx avatar Nov 16 '19 09:11 yuppx

装不上+1,下载完就不动了。macos

LIE9707 avatar Nov 19 '19 04:11 LIE9707

success on win7

pip install --upgrade pip pip install --upgrade wheel setuptools

D:\microsoft\python37\Lib\site-packages\cocoNLP-master λ python setup.py install running install '"pip install -r requirements.txt --no-clean"' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 running build running build_py copying cocoNLP\extractor.py -> build\lib\cocoNLP running egg_info writing cocoNLP.egg-info\PKG-INFO writing dependency_links to cocoNLP.egg-info\dependency_links.txt writing requirements to cocoNLP.egg-info\requires.txt writing top-level names to cocoNLP.egg-info\top_level.txt reading manifest file 'cocoNLP.egg-info\SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching 'cocoNLP\config' writing manifest file 'cocoNLP.egg-info\SOURCES.txt' creating build\lib\cocoNLP\config copying cocoNLP\config.DS_Store -> build\lib\cocoNLP\config creating build\lib\cocoNLP\config\basic creating build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp.DS_Store -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\LunarSolarConverter.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\README.md -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\RangeTimeEnum.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\StringPreHandler.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\Test.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimeNormalizer.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimePoint.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp\TimeUnit.py -> build\lib\cocoNLP\config\basic\time_nlp copying cocoNLP\config\basic\time_nlp_init_.py -> build\lib\cocoNLP\config\basic\time_nlp creating build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\PKG-INFO -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\SOURCES.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\dependency_links.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\not-zip-safe -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\requires.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO copying cocoNLP\config\basic\time_nlp\EGG-INFO\top_level.txt -> build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO creating build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\PKG-INFO -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\SOURCES.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\dependency_links.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\not-zip-safe -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\requires.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\top_level.txt -> build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info creating build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\Test.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache__init_.cpython-35.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ copying cocoNLP\config\basic\time_nlp_pycache__init_.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp_pycache_ creating build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource_init_.py -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\holi_lunar.json -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\holi_solar.json -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\reg.pkl -> build\lib\cocoNLP\config\basic\time_nlp\resource copying cocoNLP\config\basic\time_nlp\resource\regex.txt -> build\lib\cocoNLP\config\basic\time_nlp\resource creating build\lib\cocoNLP\config\basic\time_nlp\resource_pycache_ copying cocoNLP\config\basic\time_nlp\resource_pycache__init_.cpython-36.pyc -> build\lib\cocoNLP\config\basic\time_nlp\resource_pycache_ creating build\lib\cocoNLP\config\phrase copying cocoNLP\config\phrase\rake.py -> build\lib\cocoNLP\config\phrase creating build\lib\cocoNLP\config\phrase_pycache_ copying cocoNLP\config\phrase_pycache_\rake.cpython-36.pyc -> build\lib\cocoNLP\config\phrase_pycache_ creating build\lib\cocoNLP\config\phrase\data copying cocoNLP\config\phrase\data\stopwords.txt -> build\lib\cocoNLP\config\phrase\data running install_lib creating D:\microsoft\python37\Lib\site-packages\cocoNLP creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config copying build\lib\cocoNLP\config.DS_Store -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp.DS_Store -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\dependency_links.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\not-zip-safe -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\PKG-INFO -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\requires.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\SOURCES.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\EGG-INFO\top_level.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\EGG-INFO copying build\lib\cocoNLP\config\basic\time_nlp\LunarSolarConverter.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp\RangeTimeEnum.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp\README.md -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource copying build\lib\cocoNLP\config\basic\time_nlp\resource\holi_lunar.json -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource copying build\lib\cocoNLP\config\basic\time_nlp\resource\holi_solar.json -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource copying build\lib\cocoNLP\config\basic\time_nlp\resource\reg.pkl -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource copying build\lib\cocoNLP\config\basic\time_nlp\resource\regex.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource copying build\lib\cocoNLP\config\basic\time_nlp\resource_init_.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp\resource_pycache__init_.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp\StringPreHandler.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp\Test.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\dependency_links.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\not-zip-safe -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\PKG-INFO -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\requires.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\SOURCES.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info\top_level.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeConverter.egg-info copying build\lib\cocoNLP\config\basic\time_nlp\TimeNormalizer.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp\TimePoint.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp\TimeUnit.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp copying build\lib\cocoNLP\config\basic\time_nlp_init_.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\LunarSolarConverter.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\RangeTimeEnum.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\StringPreHandler.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\Test.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimeNormalizer.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimePoint.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache_\TimeUnit.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache__init_.cpython-35.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ copying build\lib\cocoNLP\config\basic\time_nlp_pycache__init_.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_pycache_ creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase\data copying build\lib\cocoNLP\config\phrase\data\stopwords.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase\data copying build\lib\cocoNLP\config\phrase\rake.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase creating D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase_pycache_ copying build\lib\cocoNLP\config\phrase_pycache_\rake.cpython-36.pyc -> D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase_pycache_ creating D:\microsoft\python37\Lib\site-packages\cocoNLP\data copying build\lib\cocoNLP\data\stopwords.txt -> D:\microsoft\python37\Lib\site-packages\cocoNLP\data copying build\lib\cocoNLP\extractor.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP copying build\lib\cocoNLP\rake.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP copying build\lib\cocoNLP_init_.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP copying build\lib\cocoNLP_version_.py -> D:\microsoft\python37\Lib\site-packages\cocoNLP byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\LunarSolarConverter.py to LunarSolarConverter.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\RangeTimeEnum.py to RangeTimeEnum.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\resource_init_.py to init.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\StringPreHandler.py to StringPreHandler.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\Test.py to Test.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeNormalizer.py to TimeNormalizer.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimePoint.py to TimePoint.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp\TimeUnit.py to TimeUnit.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\basic\time_nlp_init_.py to init.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\config\phrase\rake.py to rake.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\extractor.py to extractor.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP\rake.py to rake.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP_init_.py to init.cpython-37.pyc byte-compiling D:\microsoft\python37\Lib\site-packages\cocoNLP_version_.py to version.cpython-37.pyc running install_egg_info Copying cocoNLP.egg-info to D:\microsoft\python37\Lib\site-packages\cocoNLP-0.0.13-py3.7.egg-info running install_scripts

kingking888 avatar Apr 22 '20 13:04 kingking888

用这个命令可以加速下载,我在下载完88kb那里停顿几秒后就看到新的下载进度条 pip install cocoNLP -i https://pypi.tuna.tsinghua.edu.cn/simple MacOS已成功安装并在python里运行

zkung avatar May 08 '20 21:05 zkung

git clone https://github.com/fighting41love/cocoNLP.git
cd cocoNLP
pip insatll -r requirements.txt
python setup.py install

Works for me.

yangwei-nlp avatar Aug 05 '20 11:08 yangwei-nlp