|
60鱼币
本帖最后由 0HB 于 2021-11-15 20:45 编辑
起因:是日清晨,因为觉得python版本过多而不精炼,故将Pycharm与Anaconda及相关文件夹全部删除(保留了py文件)。
经过:其后,再将二者下回,重新安装gmpy2库的时候提示我成功安装,可实际执行起来却报错(如下图),该如何是好?
Traceback (most recent call last):
File "/Users/name/PycharmProjects/pythonProject/CTF·Crypto/RSATool.py", line 2, in <module>
import gmpy2
ImportError: dlopen(/Users/name/.conda/envs/PycharmProjects2/lib/python3.7/site-packages/gmpy2.cpython-37m-darwin.so, 2): Library not loaded: @rpath/libmpc.3.dylib
Referenced from: /Users/name/.conda/envs/PycharmProjects2/lib/python3.7/site-packages/gmpy2.cpython-37m-darwin.so
Reason: image not found
|
|