AttributeError: module 'psutil._psutil_posix' has no attribute 'getpagesize'
时间: 2023-10-22 21:05:42 浏览: 63
This error occurs when the `psutil` module is unable to find the `getpagesize` attribute in the `_psutil_posix` module.
Possible reasons for this error are:
1. Outdated `psutil` module: The `getpagesize` attribute might not be available in older versions of the `psutil` module. Updating to the latest version of the module might resolve the issue.
2. Missing dependencies: The `psutil` module depends on certain system-level packages that might not be installed. Installing the required dependencies might resolve the issue.
3. Corrupted installation: The installation of the `psutil` module might be corrupted or incomplete. Reinstalling the module might resolve the issue.
To resolve this error, try updating the `psutil` module to the latest version, installing any missing dependencies, or reinstalling the module.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![py](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)