pip 的正确使用方法

pip install requests 

这是python安装第三方库的命令。

使用时老是提示如下错误:

NameError: name 'pip' is not defined

解决方法:

打开cmd 后不要打开python,而是直接在cmd下输入 pip install requests

就OK了。

猜你喜欢

转载自www.cnblogs.com/bcyczhhb/p/11093125.html