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

比较basic的问题,requirements.txt安装失败。 #1

Open
gohell9 opened this issue Aug 7, 2018 · 5 comments
Open

比较basic的问题,requirements.txt安装失败。 #1

gohell9 opened this issue Aug 7, 2018 · 5 comments

Comments

@gohell9
Copy link

gohell9 commented Aug 7, 2018

Win的pycharm_64位安装失败。

ubt : pip install -r requirements.txt 同样失败呢,

不知道怎么解决, 能发下 virenv环境包吗? (是不是活久见有这种require。。。)

@leiray
Copy link

leiray commented Aug 9, 2018

requirements.txt这个文件面试一些依赖的包,分别手动执行下就可以了比如: pip install tensorflow ,pip install redis,pip install jieba 这些

@gohell9
Copy link
Author

gohell9 commented Aug 9, 2018

我知道啊,不过安装1.5.0版本的tf总是失败,换了中科大的pip源也失败。 所以想要一下pipenv的包 😂

@DataXujing
Copy link
Owner

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.5.0,试一下。

@gohell9
Copy link
Author

gohell9 commented Sep 26, 2018

(mytest-_wf8kayD) [root@m1 mytest]# python lx_bot_3.py train
Traceback (most recent call last):
File "lx_bot_3.py", line 44, in
max_token_id = wordToken.load_file_list(['samples/question.txt', 'samples/answer.txt'], min_freq)
File "/root/data/mytest/word_token.py", line 29, in load_file_list
with open(file, 'r',encoding='utf-8') as file_object:
FileNotFoundError: [Errno 2] No such file or directory: 'samples/question.txt'

所以,我想问下,samples不会自己生成的?要去哪里下载吗?
@@我尝试自己创建samples文件夹,还是报此错。

@DataXujing
Copy link
Owner

DataXujing commented Sep 26, 2018

我的运行环境是Python3.x, tensorflow==1.5.0,这个报错的主要原因是没有找到训练的语料。因为语料是公司内网OA环境下的后台聊天数据,不方便公开,你可以自行设置一些语料,或者搜一些电视剧,电影小说的对白,设计自己风格的语料。

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