An error is reported when installing the package directly in pycharm, but it can be installed through the terminal
The problem description is shown in the figure below:
Error content: non zero exit code (2) direct installation will report the following error , but you can use the command to install in the terminal in pycharm, but it is too troublesome to install every time, which is not applicable to problem analysis
The PIP I use here is version 21.3.1. I checked my previous projects and found that pip21.2.4 can be installed normally without error, so I reduced the PIP version of this project to pip21.2.4. However, I don’t know the specific reason why pip21.3.1 can’t be used. The problem is solved
- enter the directory where the project environment is located
open windows PowerShell in administrator mode and enter the directory where the environment is located. Use python.exe in the project to run the command
- M PIP install PIP = = 21.2.4
The goal here is to use the python execution command in the project instead of the global Python execution command . Enter pycharm to view the PIP version installation package . If there is no accident, it can be solved. I solved the problem in this way. At this time, if you like, you can upgrade PIP again. I try to upgrade pip to 21.3.1 again, which can be installed normally ol>
Reference blog
- https://blog.csdn.net/CNWorldisyourFC/article/details/110468251?utm_ medium=distribute.pc_ relevant.none-task-blog-title-2& spm=1001.2101.3001.4242. https://blog.csdn.net/weixin_ 51119842/article/details/110469060.
Read More:
- It is invalid to submit the content directly after pasting it on the mobile terminal of Vue HTML5 editor
- Installing R’s “mvtnorm” package in Windows system: solving the problem of the R package “mvtnorm” is not installed
- Ubuntu “a user name is not in the sudoer folder. It will be reported. ” Solutions for
- When a system is deployed on weblogic12.2.1.3, it reports an error “IllegalStateException zip file closed”. When it is deployed on weblogic12.2.1.2, it does not report an error and can be accessed normally.
- When Maven hits the jar package, an error is reported when executing install, and the symbol cannot be found in a line
- When angular4.0 starts the project, an error is reported: the “@ angular / compiler cli” package was not properly installed
- Registering in Windows10 regsvr32 xxx.ocx reported an error but the call to DIIRegisterServer failed with error code 0x80040200…
- When SAP receives the goods, the system prompts that it can only be recorded in the period 2009 / 09 and 2009 / 08 of company code 1101
- Android studio introduces code error, but it can run normally
- [Problem] When installing the installation package, it appears: ipersistfile save failed with error code “0×80070005
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- Pikachu vulnerability is installed in the shooting range, and an error is reported when connecting to the MySQL database
- The imported package is gray and an error is reported
- After node.js is installed, use the instruction node version in vscode to show that it is not an external or internal instruction. The solution is as follows:
- PackageNotInstalledError: Package is not installed in prefix
- When nodejs is installed: the error code is 2503
- Solve the problem of jdk8 after win7 is installed. Has value ‘1.8’, but ‘1.7’ is required
- Terminal appears after anconda is installed on MAC (base)
- Apache2 cannot be started and an error is reported for apache2.service failed because the control process exited with error code.
- An error is reported when using SecureCRT to log in to a non root account