pycharm can not install third-party libraries, error codes Non-zero exit code (1) solution

pycharm version 2019.3 

 

 

 

 

 

Generally means that the installation failed, the proposed solution: try to run this command from a system terminal. Ensure that the correct version of the 'pip', the version to be located 'C: \ Users \ G \ Desktoplgianfeng \ venv \ Scripts \ python Python interpreter installed.

You know, when you create a project with pycharm when there will be a virtual space, and that space when you install Python is not the same.

For example: You create a project

 

 

 

This venv is your virtual space, there will be a separate Python, exe interpreter in the script file folder

Since pycharm upgrade to 2019 always some weird problem

For now the solution

Let me talk about the problem, which is a major upgrade pip py module through a problem.

We first open the virtual address space of folders

 

 

 

Will find that we have in this directory, and to see whether the pip by pip -V latest version

 

 

 

See the file yet, use it to upgrade pip

 

 

 

 

 

 Then start the upgrade: pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple/

Tsinghua behind -i source, to ensure the speed

Look pip version has been updated

 

 Then install third-party libraries, no problem

 

Guess you like

Origin www.cnblogs.com/zxkwdw/p/12232415.html