Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install cocoNLP 有问题,在windows上安装,请问该怎么解决了 #37

Open
sunyh214 opened this issue Jun 28, 2021 · 2 comments

Comments

@sunyh214
Copy link

(D:\Programs\python) C:\Users\sunyh>pip install cocoNLP
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:
Couldn't find index page for 'arrow' (maybe misspelled?)
No local packages or working download links found for arrow
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\sunyh\AppData\Local\Temp\pip-build-i5gkisqz\cocoNLP\setup.py", line 75, in
cmdclass={'install': MyInstall},
File "D:\Programs\python\lib\distutils\core.py", line 108, in setup
setup_distribution = dist = klass(attrs)
File "D:\Programs\python\lib\site-packages\setuptools\dist.py", line 335, in init
self.fetch_build_eggs(attrs['setup_requires'])
File "D:\Programs\python\lib\site-packages\setuptools\dist.py", line 456, in fetch_build_eggs
replace_conflicting=True,
File "D:\Programs\python\lib\site-packages\pkg_resources_init
.py", line 863, in resolve
replace_conflicting=replace_conflicting
File "D:\Programs\python\lib\site-packages\pkg_resources_init_.py", line 1141, in best_match
return self.obtain(req, installer)
File "D:\Programs\python\lib\site-packages\pkg_resources_init_.py", line 1153, in obtain
return installer(requirement)
File "D:\Programs\python\lib\site-packages\setuptools\dist.py", line 522, in fetch_build_egg
return cmd.easy_install(req)
File "D:\Programs\python\lib\site-packages\setuptools\command\easy_install.py", line 666, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('arrow')

@rookie-python
Copy link

jieba
pyhanlp
phone
phonenumbers
regex
arrow==0.14.3

你先 pip 把这些包都装包, 再安装cocoNLP, 不需要python3.6 ,我python3.9 也能用来
image

@jing86736238
Copy link

jieba pyhanlp phone phonenumbers regex arrow==0.14.3

你先 pip 把这些包都装包, 再安装cocoNLP, 不需要python3.6 ,我python3.9 也能用来 image

但是你这里的话 是把arrow 包从1.几 降到了0.几, 我也不知道会有啥影响,可能用不到这个包

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants