Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在学习关于 Udemy 的课程:使用 Python 自动化无聊的东西。对于其中一门课程,指南要求我安装 Pyperclip。现在我试过了,但是 cmd 一直返回:“ 'pip' 不被识别为内部或外部命令,可操作或批处理文件
我使用的路径是“C:\Users\myname\AppData\Local\Programs\Python\Python36-32\Scripts\pip.exe”,我在没有 pip.exe 的情况下尝试过,但它也返回错误.
修复了它,我尝试了“C:\Users\Scott\AppData\Local\Programs\Python\Python36-32\Scripts\pip.exe install pyperclip”,它成功了。
Python3已经嵌入了pip,所以可以直接使用python3来安装:
python3 -m pip install <package>