问题使用PIP为Python
问题描述:
时,我已经成功地安装xlsxwriter使用我的CMD,因为我需要用我的Python progect不过话说安装后的模块与已经返回的CMD“安装成功xlsxwriter”它似乎并不已经工作。 当我去蟒蛇外壳导入xlsxwriter返回没有名为xlsxwriter moduel。问题使用PIP为Python
p.s.我键入到CMD命令为:C:\ python34 \脚本\ PIP使用Windows 10和python安装xlsxwriter p.p.s IM 3.5.1
答
附:我键入到CMD命令为:C:\ python34 \脚本\ PIP安装使用Windows 10和Python 3.5.1
xlsxwriter PPS IM是有可能,你安装它为您的Python 3.4的安装,并试图使用它与您的python 3.5安装?
请尽量where python
看哪个Python安装是默认的(即第一次列在您PATH)。
我会假设你需要
C:\python35\scripts\pip install xlsxwriter
C:\python35\python.exe
或添加要默认到PATH环境变量的版本。
看一看Python文档parts regarding windows installs and environment variables。
我想这个问题的答案是:你用python 3.4的'pip'安装了它,并且运行python 3.5.1 ... –