Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
555 views
in Technique[技术] by (71.8m points)

pip - why python-docx is not found in

Trying to import docx module and installing it using both conda and pip conda install python-docx or pip install python-docx

But it is showing package not found error. See attached image error image

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Since you did not post your error that you are getting with pip, I can only comment on the conda install problem. python-docx is not available from the default channels, but from conda-forge. So use this to install:

conda install -c conda-forge python-docx 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...