Pyinstaller Matplotlib [Errno 2] 没有那个文件或目录:'C:\Users\Tobi\AppData\Local\Temp\_MEI142562\matplotlib\mpl-data\matplotlibrc'
Pyinstaller Matplotlib [Errno 2] No such file or directory: 'C:\\Users\\Tobi\\AppData\\Local\\Temp\\_MEI142562\\matplotlib\\mpl-data\\matplotlibrc'
我正在编写一个程序来计算我的火箭联盟库存值多少钱。
我使用了 Python 和我导入的一些模块。如果我执行我的 python 文件,一切正常。
现在我想用 pyinstaller 制作一个独立的 exe。
如果我执行 .exe 文件,我会收到以下错误:
C:\Users\Tobi\Desktop\invpepeshort>.\invpepe.exe
Traceback (most recent call last):
File "invpepe.py", line 14, in <module>
import matplotlib.pyplot as plt
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
File "matplotlib\__init__.py", line 820, in <module>
File "matplotlib\__init__.py", line 725, in _rc_params_in_file
File "contextlib.py", line 117, in __enter__
File "matplotlib\__init__.py", line 703, in _open_file_or_url
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Tobi\AppData\Local\Temp\_MEI142562\matplotlib\mpl-data\matplotlibrc'
我希望有人可以提出修复建议。
我不知道这是不是最正确的答案,但我遇到了和你完全一样的问题。
我的解决了,重新安装Pyinstaller版本develop
pip 安装https://github.com/pyinstaller/pyinstaller/archive/develop.zip
我正在编写一个程序来计算我的火箭联盟库存值多少钱。 我使用了 Python 和我导入的一些模块。如果我执行我的 python 文件,一切正常。
现在我想用 pyinstaller 制作一个独立的 exe。
如果我执行 .exe 文件,我会收到以下错误:
C:\Users\Tobi\Desktop\invpepeshort>.\invpepe.exe
Traceback (most recent call last):
File "invpepe.py", line 14, in <module>
import matplotlib.pyplot as plt
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 531, in exec_module
File "matplotlib\__init__.py", line 820, in <module>
File "matplotlib\__init__.py", line 725, in _rc_params_in_file
File "contextlib.py", line 117, in __enter__
File "matplotlib\__init__.py", line 703, in _open_file_or_url
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Tobi\AppData\Local\Temp\_MEI142562\matplotlib\mpl-data\matplotlibrc'
我希望有人可以提出修复建议。
我不知道这是不是最正确的答案,但我遇到了和你完全一样的问题。
我的解决了,重新安装Pyinstaller版本develop
pip 安装https://github.com/pyinstaller/pyinstaller/archive/develop.zip