欢迎来到代码驿站!

Python代码

当前位置:首页 > 软件编程 > Python代码

python开发之anaconda以及win7下安装gensim的方法

时间:2021-05-14 10:36:49|栏目:Python代码|点击:

一、推荐安装Anaconda

官方介绍:Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes more than 400 of the most popular Python packages for science, math, engineering, and data analysis. 

下载页面:https://www.continuum.io/downloads

Python的有些模块在单独安装时可能非常麻烦,Anaconda中则已经集成好了许多常见的模块,用起来非常方便。

安装Anaconda之前不需要预先安装python,它其中已经自带Python、IPython、集成开发环境Spyder、一些包等等。 

anaconda自带的conda命令:

# 查看安装的包
conda list
# 安装模块
conda install scipy
# 更新模块
conda update scipy
# 更新所有模块
conda update --all
# 升级Anaconda
conda update conda
conda update anaconda

二、gensim安装

因为需要学习使用word2vec,所以要安装gensim模块。

用传统python安装gensim库时,由于依赖的库比较多,试过很多教程之后还是失败。

利用上面安装好Anaconda之后,直接pip install gensim就成功了。

上一篇:使用PyInstaller将Pygame库编写的小游戏程序打包为exe文件及出现问题解决方法

栏    目:Python代码

下一篇:python+flask编写一个简单的登录接口

本文标题:python开发之anaconda以及win7下安装gensim的方法

本文地址:http://www.codeinn.net/misctech/121094.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有