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

安装错误 #49

Closed
mysalter opened this issue Oct 15, 2020 · 6 comments
Closed

安装错误 #49

mysalter opened this issue Oct 15, 2020 · 6 comments

Comments

@mysalter
Copy link

安装的过程报错,请问是咋回事
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\xiaomililkx\AppData\Local\Temp\pip-install-0qhpg_2d\sentencepiece\setup.py'"'"'; file='"'"'C:\Users\xiaomililkx\AppData\Local\Temp\pip-install-0qhpg_2d\sentencepiece\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 'C:\Users\xiaomililkx\AppData\Local\Temp\pip-pip-egg-info-_cj1cx2r'
cwd: C:\Users\xiaomililkx\AppData\Local\Temp\pip-install-0qhpg_2d\sentencepiece
Complete output (7 lines):
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\xiaomililkx\AppData\Local\Temp\pip-install-0qhpg_2d\sentencepiece\setup.py", line 29, in
with codecs.open(os.path.join('..', 'VERSION'), 'r', 'utf-8') as f:
File "c:\python38\lib\codecs.py", line 905, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '..\VERSION'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

@biggerbiggest
Copy link

你解决了吗?

@mysalter
Copy link
Author

你解决了吗?

并没有……

@V1ki
Copy link

V1ki commented Dec 22, 2020

直接使用 pip install Senta 的话,是不能安装成功的,可以将源码下载下来后,将setup.py 中的install_requires 改为下面的值:

install_requires=[
        "nltk == 3.4.5", 
        "numpy == 1.14.5",
        "six == 1.11.0",
        "scikit-learn >= 0.20.4",
        "sentencepiece >= 0.1.83"],

其实之所以报错是因为 sentencepiece 的0.1.83 版本的安装出了问题。

@mysalter
Copy link
Author

直接使用 pip install Senta 的话,是不能安装成功的,可以将源码下载下来后,将setup.py 中的install_requires 改为下面的值:

install_requires=[
        "nltk == 3.4.5", 
        "numpy == 1.14.5",
        "six == 1.11.0",
        "scikit-learn >= 0.20.4",
        "sentencepiece >= 0.1.83"],

其实之所以报错是因为 sentencepiece 的0.1.83 版本的安装出了问题。

特别感谢

@SoulSubmerge
Copy link

直接使用 pip install Senta 的话,是不能安装成功的,可以将源码下载下来后,将setup.py 中的install_requires 改为下面的值:

install_requires=[
        "nltk == 3.4.5", 
        "numpy == 1.14.5",
        "six == 1.11.0",
        "scikit-learn >= 0.20.4",
        "sentencepiece >= 0.1.83"],

其实之所以报错是因为 sentencepiece 的0.1.83 版本的安装出了问题。

我这样安装还是依旧报错,这是为什么呢?

@SoulSubmerge
Copy link

Downloading scipy-1.5.4-cp37-cp37m-win_amd64.whl (31.2 MB)
每次都是下载这个的时候出错

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

4 participants