windows下安装Python的IPy模块

原文链接:http://www.cnblogs.com/momogua/p/8304336.html

 

学习Python从安装各种模块开始大笑


1、通过pip来安装IPy模块

 

C:\Users\Administrator>pip install IPy
Collecting IPy
  Downloading IPy-0.83.tar.gz
Installing collected packages: IPy
  Running setup.py install for IPy ... done
Successfully installed IPy-0.83

C:\Users\Administrator>

 


2、验证安装。

一开始我以为在引用模块的时候是小写,但是报错了。

于是改成IPy之后,就好了,这再次说明字符的大小写很重要,要仔细一些,不要写错了。

C:\Users\Administrator>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ipy
>>> import IPy
>>>

 

记录一下python的:python包列表

 

有了上次安装失败的经验后,这次安装就顺利多了。

学习Python从安装各种模块开始大笑


1、通过pip来安装IPy模块

 

C:\Users\Administrator>pip install IPy
Collecting IPy
  Downloading IPy-0.83.tar.gz
Installing collected packages: IPy
  Running setup.py install for IPy ... done
Successfully installed IPy-0.83

C:\Users\Administrator>

 


2、验证安装。

一开始我以为在引用模块的时候是小写,但是报错了。

于是改成IPy之后,就好了,这再次说明字符的大小写很重要,要仔细一些,不要写错了。

C:\Users\Administrator>python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ipy
>>> import IPy
>>>

记录一下python的:python包列表

 

转载于:https://www.cnblogs.com/momogua/p/8304336.html

展开阅读全文
博主设置当前文章不允许评论。

windows安装python的三方模块pyExcelerator的问题

11-28

我装的python是python3.2,我想安装一个pyExcelerator模块,1.下载pyExcelerator,版本是最新的pyexcelerator-0.6.4.1.zip,然后解压 rn2.在dos下执行python setup.py installrn然后开始执行,rnrunning installrnrunning buildrnrunning build_pyrncreating buildrncreating build\librncreating build\lib\pyExceleratorrncopying pyExcelerator\antlr.py -> build\lib\pyExceleratorrncopying pyExcelerator\BIFFRecords.py -> build\lib\pyExceleratorrncopying pyExcelerator\Bitmap.py -> build\lib\pyExceleratorrncopying pyExcelerator\Cell.py -> build\lib\pyExceleratorrncopying pyExcelerator\Column.py -> build\lib\pyExceleratorrncopying pyExcelerator\CompoundDoc.py -> build\lib\pyExceleratorrncopying pyExcelerator\Deco.py -> build\lib\pyExceleratorrncopying pyExcelerator\ExcelFormula.py -> build\lib\pyExceleratorrncopying pyExcelerator\ExcelFormulaLexer.py -> build\lib\pyExceleratorrncopying pyExcelerator\ExcelFormulaParser.py -> build\lib\pyExceleratorrncopying pyExcelerator\ExcelMagic.py -> build\lib\pyExceleratorrncopying pyExcelerator\Formatting.py -> build\lib\pyExceleratorrncopying pyExcelerator\ImportXLS.py -> build\lib\pyExceleratorrncopying pyExcelerator\Row.py -> build\lib\pyExceleratorrncopying pyExcelerator\Style.py -> build\lib\pyExceleratorrncopying pyExcelerator\UnicodeUtils.py -> build\lib\pyExceleratorrncopying pyExcelerator\Utils.py -> build\lib\pyExceleratorrncopying pyExcelerator\Workbook.py -> build\lib\pyExceleratorrncopying pyExcelerator\Worksheet.py -> build\lib\pyExceleratorrncopying pyExcelerator\__init__.py -> build\lib\pyExceleratorrnrunning install_librncreating C:\Python32\Lib\site-packages\pyExceleratorrncopying build\lib\pyExcelerator\antlr.py -> C:\Python32\Lib\site-packages\pyExcernleratorrncopying build\lib\pyExcelerator\BIFFRecords.py -> C:\Python32\Lib\site-packages\rnpyExceleratorrncopying build\lib\pyExcelerator\Bitmap.py -> C:\Python32\Lib\site-packages\pyExcrneleratorrncopying build\lib\pyExcelerator\Cell.py -> C:\Python32\Lib\site-packages\pyExcelrneratorrncopying build\lib\pyExcelerator\Column.py -> C:\Python32\Lib\site-packages\pyExcrneleratorrncopying build\lib\pyExcelerator\CompoundDoc.py -> C:\Python32\Lib\site-packages\rnpyExceleratorrncopying build\lib\pyExcelerator\Deco.py -> C:\Python32\Lib\site-packages\pyExcelrneratorrncopying build\lib\pyExcelerator\ExcelFormula.py -> C:\Python32\Lib\site-packagesrn\pyExceleratorrncopying build\lib\pyExcelerator\ExcelFormulaLexer.py -> C:\Python32\Lib\site-pacrnkages\pyExceleratorrncopying build\lib\pyExcelerator\ExcelFormulaParser.py -> C:\Python32\Lib\site-parnckages\pyExceleratorrncopying build\lib\pyExcelerator\ExcelMagic.py -> C:\Python32\Lib\site-packages\prnyExceleratorrncopying build\lib\pyExcelerator\Formatting.py -> C:\Python32\Lib\site-packages\prnyExceleratorrncopying build\lib\pyExcelerator\ImportXLS.py -> C:\Python32\Lib\site-packages\pyrnExceleratorrncopying build\lib\pyExcelerator\Row.py -> C:\Python32\Lib\site-packages\pyExcelernratorrncopying build\lib\pyExcelerator\Style.py -> C:\Python32\Lib\site-packages\pyExcernleratorrncopying build\lib\pyExcelerator\UnicodeUtils.py -> C:\Python32\Lib\site-packagesrn\pyExceleratorrncopying build\lib\pyExcelerator\Utils.py -> C:\Python32\Lib\site-packages\pyExcernleratorrncopying build\lib\pyExcelerator\Workbook.py -> C:\Python32\Lib\site-packages\pyErnxceleratorrncopying build\lib\pyExcelerator\Worksheet.py -> C:\Python32\Lib\site-packages\pyrnExceleratorrncopying build\lib\pyExcelerator\__init__.py -> C:\Python32\Lib\site-packages\pyErnxceleratorrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\antlr.py to antlr.pycrnrn File "C:\Python32\Lib\site-packages\pyExcelerator\antlr.py", line 34rn print "error: ", fmt % tuple(args)rn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\BIFFRecords.py to BIFrnFRecords.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\BIFFRecords.py", line 206rn file_hist_flags = 0x00Lrn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Bitmap.py to Bitmap.prnycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Cell.py to Cell.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\Cell.py", line 119rn rk_encoded = (2 | (int(self.__number) << 2)) & 0xffffffffLrn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Column.py to Column.prnycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\CompoundDoc.py to ComrnpoundDoc.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\CompoundDoc.py", line 73rn print 'NOTE: header says that must be', self.total_ssat_sectors, 'short sectrnors'rn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Deco.py to Deco.pycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormula.py to ExrncelFormula.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormula.py", line 77rn raise Exception, "can't parse formula " + srn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormulaLexer.pyrnto ExcelFormulaLexer.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormulaLexer.py", linern160rn print trn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormulaParser.pyrn to ExcelFormulaParser.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\ExcelFormulaParser.py", linern 337rn raise Exception, "unknown function: %s" % func_tok.textrn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\ExcelMagic.py to ExcernlMagic.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\ExcelMagic.py", line 1054rn 0x00: u"#NULL!", # intersection of two cell ranges is emptyrn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Formatting.py to Formrnatting.pycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\ImportXLS.py to ImporrntXLS.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\ImportXLS.py", line 334rn raise Exception, 'No workbook stream in file.'rn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Row.py to Row.pycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Style.py to Style.pycrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\UnicodeUtils.py to UnrnicodeUtils.pycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Utils.py to Utils.pycrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Workbook.py to Workbornok.pycrn File "C:\Python32\Lib\site-packages\pyExcelerator\Workbook.py", line 526rn boundsheets_len += len(BIFFRecords.BoundSheetRecord(0x00L, sheet.hidden, shernet.name).get())rn ^rnSyntaxError: invalid syntaxrnrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\Worksheet.py to Worksrnheet.pycrnbyte-compiling C:\Python32\Lib\site-packages\pyExcelerator\__init__.py to __initrn__.pycrnrunning install_egg_infornWriting C:\Python32\Lib\site-packages\pyExcelerator-0.6.4.1-py3.2.egg-inforn很多类似的错误,不知道怎么解决,很郁闷,希望大家能帮助解决一下,不胜感激rnrn我又试了将D:\Python Learn\pyexcelerator-0.6.4.1\pyexcelerator-0.6.4.1下的pyExcelerator文件夹拷贝到C:\Python32\Lib\site-packages下面,还是不行,执行 from pyExcelarator import *,错误是:rnTraceback (most recent call last):rn File "", line 1, in rn File "pyExcelerator\__init__.py", line 12, in rn from Workbook import WorkbookrnImportError: No module named Workbook 论坛

没有更多推荐了,返回首页