When using pyinstaller to package py file as exe, if the following problems occur
File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\hooks\hook-gevent.py", line 25, in <module>
datas += copy_metadata('gevent', recursive=True)
File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 940, in copy_metadata
dest = _copy_metadata_dest(dist.egg_info, dist.project_name)
File "c:\xxx\anaconda3\lib\site-packages\PyInstaller\utils\hooks\__init__.py", line 975, in _copy_metadata_dest
f"No metadata path found for distribution '{project_name}'.")
RuntimeError: No metadata path found for distribution 'greenlet'.
The following methods can be used to solve the problem
pip install --ignore-installed greenlet
It is said that the following method (method 2) can also be used to solve the problem. The blogger has not tested this method and does not know whether it is available. It is mainly to have a chance to test it later.
When you encounter this problem, you can uninstall the original one and reinstall it, but this reinstallation will遇到这种问题直接卸载原来的重装但是这个重装会
ERROR: Cannot uninstall ‘greenlet’. It is a distutils installed
project and thus we cannot accurately determine which files belong to
it which would lead to only a partial uninstall.
Then you can just delete this file where you found it according to the address where you reinstalled it.
Read More:
- [Solved] Pyinstaller Package and Run Error: RuntimeError: Unable to open/read ui device
- [Solved] ERROR: No matching distribution found for torch-cluster==x.x.x
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- [Solved] RuntimeError: ProcessGroupNCCL is only supported with GPUs, no GPUs found
- How to Solve PyInstaller Package Error: ModuleNotFoundError: No module named ‘xxxx‘
- [Solved] RuntimeError: No application found. Either work inside a view function or push an application contex
- Python Use PIP to install pyinstaller Error [Solved]
- [How to Solve] pyinstaller failed to execute script
- Pyinstaller Error: INTEL MKL ERROR: The specified module could not be found. mkl_intel_thread.1.dll.Intel MKL FATAL ERROR: Cannot
- [Solved] PyInstaller Error: ValueError: too many values to unpack
- [Solved] Pyinstaller package opencv error: ImportError: OpenCV loader: missing configuration file: [‘config.py’]. Check OpenCV installation.
- RuntimeError: No HIP GPUs are available [How to Solve]
- [Solved] Pyinstaller packaged exe error: “failed to execute script XXX”
- [Solved] RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at
- [Solved] Python WARNING: Ignoring invalid distribution -umpy
- [Solved] Pytorch Error: RuntimeError: expected scalar type Double but found Float
- [Solved] RuntimeError: expected scalar type Long but found Float
- Pytorch Error: runtimeerror: expected scalar type double but found float
- [Solved] python tqdm raise RuntimeError(“cannot join current thread“) RuntimeError: cannot join current thr
- How to Solve RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu