[英]I can't install new modules for python 3.5.2 on my employer laptop
I am trying to install openpyxl 2.4.1 on Python 3.5.2 using pip. 我正在尝试使用pip在Python 3.5.2上安装openpyxl 2.4.1。 I tried running the code below in both Windows' Command Prompt and the Python 3.5 Desktop app created when I installed the software: 我尝试在Windows的命令提示符和安装该软件时创建的Python 3.5 Desktop应用程序中运行以下代码:
python pip install openpyxl
I also tried 我也试过
pip install openpyxl
Error I receive from cmd.exe: 我从cmd.exe收到错误:
C:\Users\'username'>pip install openpyxl
'pip' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\'username'>python pip install openpyxl
'python' is not recognized as an internal or external command,
operable program or batch file.
I think the issue is that I'm using my employer laptop so the file path is different; 我认为问题在于我使用的是我的雇主笔记本电脑,因此文件路径不同; ie instead of C:\\Python35\\...
; 即代替C:\\Python35\\...
; mine is C:\\Users\\'username'\\AppData...\\Programs\\Python 3.5
我的是C:\\Users\\'username'\\AppData...\\Programs\\Python 3.5
Could this be my problem, and, if so, how do I fix it? 这可能是我的问题吗?如果是,该如何解决?
Thanks. 谢谢。
您正在尝试在Python解释器中运行pip
,而应在终端中运行它(即cmd.exe
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.