- 博客(2)
- 收藏
- 关注
原创 TypeError: write() argument must be str, not bytes
Python3写入二进制文件:with open('vocab.vc','w') as f: pickle.dump(voca,f)wtfidf=tfidf.fit_transform(wv)报错提示:write输入的参数是字符串类型str,不是字节类型bytes错误原因:Python3中open函数添加了新参数——encoding,该参数默认值为‘utf-8’。故在文件句...
2020-04-02 16:52:22
1735
1
原创 Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问
Anaconda安装imblearn时输入:pip install imblearn报错:Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问报错原因:管理员权限不够大下载命令修改:pip install --user imblearn结果安装成功...
2020-03-23 17:43:16
195
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人