- 博客(15)
- 资源 (4)
- 收藏
- 关注
原创 python安装模块 用pip install xxx.whl绝对不报错
以前安装python模块时,习惯使用pip install xxx,经常会出现各种错误,编译错误最多,解决起来烦人不说,有时根本解决不了,现在向大家介绍一种安装方法。1.去http://www.lfd.uci.edu/~gohlke/pythonlibs/?spm=5176.9876270.0.0.7cb4283aeMWiOT下载你所需的包(都是windows的编译好的包),注意版本要
2017-09-13 10:48:41
2154
1
转载 error: command 'mt.exe' failed with exit status 31
解决方法:① Python27\Lib\distutils\msvc9compiler.py,用编辑器打开msvc9compiler.py文件②找到ld_args.append('/MANIFESTFILE:' + temp_manifest)这一行③ 在其后添加一行,内容为ld_args.append('/MANIFEST')
2017-07-06 22:09:03
482
原创 error: Unable to find vcvarsall.bat
这个错误真的很烦人,我在为python安装模块时遇到了好几次,试着照网上所说的安装MinGW,然后,呵呵,这个错误解决了,又出现了别的错误。下面介绍解决方法,不用安装MinGW,很简单,不过需要安装 Visual Studio打开cmd根据你装 Visual Studio的版本输入以下命令:VS2003:SET VS90COMNTOOLS=%VS80COMNTOOLS%VS20
2017-07-06 21:33:41
729
原创 python类的定义与对象的创建及书写规范
#类的定义class Dog: #类(Dog)名首字母大写 __name="" #私有实例变量(__name)前有2个下划线 def __init__(self,name): self.__name=name def getName(self): #方法名(ge
2017-07-05 22:20:40
2134
原创 将Anaconda 的python2升级到python3
打开Anaconda Command Prompt,输入以下命令:conda update anacondaoonda create -n py3k python=3.3 anaconda (3.3为版本号,可以改成其他版本)在安装过程中会有一些提示,输入y按回车即可。安装完成,重新打开Anaconda Command Prompt,输入以下命令:activate py3k
2017-07-05 19:56:47
8567
原创 fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory
问题: 我在为python安装skimage模块时出现编译错误,如下,skimage\external\tifffile\tifffile.c(75) : fatal error C1083: Cannot open include file: ‘stdint.h’: No such file or directory原因: stdint.h是c99标准的头文件,vc不支持,所以出现错误“...
2017-07-03 22:13:21
8741
1
转载 Python安装模块的几种方法
一、方法1: 单文件模块直接把文件拷贝到 $python_dir/Lib二、方法2: 多文件模块,带setup.py下载模块包,进行解压,进入模块文件夹,执行:python setup.py install三、 方法3:easy_install 方式 先下载ez_setup.py,运行python ez_setup 进行easy_install工具的安装,之后就可以使用ea
2017-05-26 19:59:27
40739
转载 win8.1安装msi程序报2052、2053错误的解决方法
当下使用win8系统的用户越来越多,但是由于win8系统的权限问题,在安装软件(尤其是msi程序)时经常报2052、2053错误(如图所示),在这里以win8.1系统为例,通过更改C:/Windows/Temp目录权限解决。解决方法:1、进入C:/Windows/temp目录2、在该目录中的空白处,单击鼠标右键,点击“属性”3、在弹出的“temp属性”对话框
2017-05-26 19:20:59
1637
转载 Microsoft Visual C++ 9.0 is required
环境:windows7 x64 ,python2.7 ,VS2012报错:Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat)原因:windows下使用pip安装包的时候需要机器装有vs2008,VS2012还不行,如果不想装VS2008的话,可以安装一个Micorsoft Visual C++ C
2017-05-26 19:13:02
3014
原创 多项式求值
#include#includetypedef struct{double coef;int epxn;}elemtype;typedef struct node{elemtype data;struct node*next;}node,*link;void creatpolyn(link&p,int x);void printpolyn(lin
2014-11-01 16:14:50
594
原创 表达式求值
#include#include#includetypedef struct{ char*base;char*top;int stacksize;}stack1;typedef struct{int*base;int*top;int stacksize;}stack2;int initstack1(stack1 &s);int push
2014-11-01 16:11:54
357
翻译 KMP
#include #include #define N 51#define M 11 char s[N],t[M];int next[M]; void get_nextval(char* t,int next[]){ int i = 1; int j = 0; next[0] = -1; while(i { if(j==-1||t[i]
2014-11-01 16:07:31
259
msinttypes--r26.zip
2018-03-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人