Python Install Third Party Library Error: Command Erropred Out with Exit Status 1:

created at 06-24-2021 views: 3

Let's take a look at the prompt of mistake:

I originally wanted to get a word cloud with Python. I didn't expect to give me this big red fork when I installed the WordCloud library. I am very rushing, the teacher is unfavorable! 

Part of the error information is as follows: 

Error: Command Erroored Out with exit status 1: command: 'C: \ users \ 15870 \ appdata \ local \ programs \ python \ python37-32 \ python.exe' -u -c 'import sys, Setuptools, tokenize; sys.argv [0] = '"'" 'c: \ users \ 15870 \ appdata \ local \ TEMP \ PIP-INSTALL-2WCYWEHO \ WordCloud \ setup.py' "'"'; file = '" '"' C: \ users \ 15870 \ appdata \ local \ TEMP \ PIP-INSTALL-2WCYWEHO \ WordCloud \ setup.py '"' "; f = getattr (tokenize, '"' "'open'" '" , open; code = f.read (). Replace ('"'" '\ r \ n' "'" "'" '\ n' "'); f.close ( ); EXEC (Compile, File, '"'" '""' "" '")' install --record 'c: \ users \ 15870 \ appdata \ local \ TEMP \ Pip-record-9qx3thr5 \ install- Record.txt '--single-Version-Externally-Managed --Compile

To be honest as a newbie, I really can't understand this mistake, but it doesn't matter. It doesn't matter if you don't understand the error. But we can still solve the problem, so some queries are found to find a solution as follows:

1. First open Python to see what version of your python is, how much is. Like me is a 3.7.3 version of 32 digits;

2. Go to here Find the corresponding version of the WHL file, I'm looking for WordCloud-1.5.0-CP37-CP37M-Win32.Whl, where CP37 represents 3.7 version Win32 represents 32-bit machines of the Windows system.

3. After downloading the corresponding WHL file, enter the folder where WHL is located with CMD.

4. Finally, enter pip install wordcloud-1.5.0-cp37-cp37m-win32.whl to install.

Finally, you can use it, I hope everyone can be helped!

Please log in to leave a comment.