进入cmd命令行
C:\Users\Lenovo>pip install XlsxWriter
Collecting XlsxWriter
Downloading XlsxWriter-0.9.8-py2.py3-none-any.whl (137kB)
100% |████████████████████████████████| 143kB 31kB/s
Installing collected packages: XlsxWriter
Successfully installed XlsxWriter-0.9.8
如果出现提示pip不是内部或外部命令,则需要先安装pip
下载文件:https://bootstrap.pypa.io/get-pip.py,放到工作目录或指定目录并执行
D:\PythonSpace>python get-pip.py
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 13kB/s
Installing collected packages: pip, wheel
Successfully installed pip-9.0.1 wheel-0.29.0
注意:pip is already installed if you’re using Python 2 >=2.7.9 or Python 3 <=3.4 binaries downloaded from python.org, but you'll need to upgrade pip.
C:\Users\Lenovo>python -m pip install –upgrade pip
Collecting pip
Using cached pip-9.0.1-py2.py3-none-any.whl
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 13kB/s
Installing collected packages: pip, wheel
Successfully installed pip-9.0.1 wheel-0.29.0
原创文章,作者:iConan,如若转载,请注明出处:https://www.aspyc.com/archives/384.html