安装语言检查时如何解决错误?
我使用此命令安装语言检查库。目的是我想将语言检查用于需要语言检查库的pytractions库。
我的python版本是3.8.13
pip install language-check
我有以下错误:
Running setup.py clean for language-check
Failed to build language-check
Installing collected packages: language-check
Running setup.py install for language-check ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\USER\anaconda3\envs\NLP\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-y0oeqs59\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\USER\anaconda3\envs\NLP\Include\language-check'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\
Complete output (35 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 595, in <module>
sys.exit(main())
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 590, in main
run_setup_hooks(config)
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 561, in run_setup_hooks
language_tool_hook(config)
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 584, in language_tool_hook
download_lt()
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\download_lt.py", line 128, in download_lt
with closing(urlopen(url)) as u:
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 563, in error
result = self._call_chain(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\USER\anaconda3\envs\NLP\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-y0oeqs59\install-record.txt' --single-version-externally-managed --compile --instal
```
Any suggestions to solve it ?
I'am installing language-check library using this command. The purpose is I want to use language-check for the pycontractions library that require language-check library.
My python version is 3.8.13
pip install language-check
I got following error:
Running setup.py clean for language-check
Failed to build language-check
Installing collected packages: language-check
Running setup.py install for language-check ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\USER\anaconda3\envs\NLP\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-y0oeqs59\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\USER\anaconda3\envs\NLP\Include\language-check'
cwd: C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\
Complete output (35 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 595, in <module>
sys.exit(main())
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 590, in main
run_setup_hooks(config)
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 561, in run_setup_hooks
language_tool_hook(config)
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\setup.py", line 584, in language_tool_hook
download_lt()
File "C:\Users\USER\AppData\Local\Temp\pip-install-vvhnccvk\language-check_21a0d3b22c9540f4908d4e0f9da750b7\download_lt.py", line 128, in download_lt
with closing(urlopen(url)) as u:
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 563, in error
result = self._call_chain(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 531, in open
response = meth(req, response)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 640, in http_response
response = self.parent.error(
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 569, in error
return self._call_chain(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 502, in _call_chain
result = func(*args)
File "C:\Users\USER\anaconda3\envs\NLP\lib\urllib\request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\USER\anaconda3\envs\NLP\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"'; __file__='"'"'C:\\Users\\USER\\AppData\\Local\\Temp\\pip-install-vvhnccvk\\language-check_21a0d3b22c9540f4908d4e0f9da750b7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\USER\AppData\Local\Temp\pip-record-y0oeqs59\install-record.txt' --single-version-externally-managed --compile --instal
```
Any suggestions to solve it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论