使用pip for python时的问题

2024-04-26 09:19:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经成功地使用我的cmd安装了xlsxwriter,因为我需要在python程序中使用它,但是在模块安装完毕并且cmd返回“successfully installed xlsxwriter”之后,它似乎不起作用。 当我进入pythonshell导入xlsxwriter时,它不会返回名为xlsxwriter的moduel。在

另外,我在cmd中输入的命令是c:\python34\script\pip install xlsxwriter p、 使用Windows10和Python3.5.1的p.s im


Tags: 模块installpipinstalled命令程序cmdscript
1条回答
网友
1楼 · 发布于 2024-04-26 09:19:11

p.s. the command I typed into the cmd was c:\python34\script\pip install xlsxwriter p.p.s im using windows 10 and python 3.5.1

您是否可能是为安装Python3.4而安装的,并试图在Python3.5安装中使用它?在

请尝试where python查看您的默认安装是哪个python(即在您的路径中首先列出)。在

我想你需要

C:\python35\scripts\pip install xlsxwriter
C:\python35\python.exe

或者将要默认的版本添加到PATH环境变量中。在

看看python文档parts regarding windows installs and environment variables。在

相关问题 更多 >