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

yipeiwu_com6年前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就成功了。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持【听图阁-专注于Python设计】。

相关文章

Python制作CSDN免积分下载器

Python制作CSDN免积分下载器

CSDN免积分下载 你懂的。 1、输入资源地址如:http://download.csdn.net/download/gengqkun/4127808 2、输入验证码 3、点击下载,会...

Python3转换html到pdf的不同解决方案

问题:python3 如何转换html到pdf 描述: 我的电脑是windows764位,python3.4 我想用python 转换html到pdf. 我尝试了html2pdf,貌似它...

Python入门教程 超详细1小时学会Python

Python入门教程 超详细1小时学会Python

为什么使用Python    假设我们有这么一项任务:简单测试局域网中的电脑是否连通.这些电脑的ip范围从192.168.0.101到192.168.0.200.&nbs...

python3.3使用tkinter开发猜数字游戏示例

利用这个小游戏可以学习一下ython3.3中tkinter的使用方法复制代码 代码如下:# -*- coding: utf-8 -*-import tkinter as tkimport...

Python实现图片添加文字

在工作中有时候会给图上添加文字,常用的是PS工具,不过我想通过代码的方式来给图片添加文字。 需要使用的Python的图像库:PIL.更加详细的知识点如下: Imaga模块:用来创建,打开...