【补充了另外一种方法。】
错误提示如下:
Couldn't refresh skeletons for remote interpreter
failed to run generator3/__main__.py for sftp://abc123@192.168.3.29:22/home/abc123/anaconda3/envs/fafa/bin/python3.8, exit code 1, stderr:
-----
Failed to process 'pywt._extensions._cwt' while nothing yet: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "/home/abc123/.pycharm_helpers/generator3/__main__.py", line 167, in <module>
main()
File "/home/abc123/.pycharm_helpers/generator3/__main__.py", line 140, in main
generator.discover_and_process_all_modules(name_pattern=args.name_pattern, builtins_only=args.builtins_only)
File "/home/abc123/.pycharm_helpers/generator3/core.py", line 442, in discover_and_process_all_modules
self.process_module(mod.qname, mod.path)
File "/home/abc123/.pycharm_helpers/generator3/core.py", line 516, in process_module
status = self.reuse_or_generate_skeleton(mod_name, mod_path, sdk_skeleton_state)
File "/home/abc123/.pycharm_helpers/generator3/core.py", line 558, in reuse_or_generate_skeleton
问题描述如下:
下图是解决问题后的图,一开始所有的库都是爆红的。
方法(一):
点击 Interpreter Settings
点击 倒三角 ->show all
点击 Show paths for …
点击 + ,添加以下三条路径
/home/ubuntu/anaconda3/envs/liulongfa3.8/lib/python3.8
/home/ubuntu/anaconda3/envs/liulongfa3.8/lib/python3.8/lib-dynload
/home/ubuntu/anaconda3/envs/liulongfa3.8/lib/python3.8/site-packages
OK问题解决!
如果第一种方法不可行的话,尝试一下第二种。
方法(二):
选中”根目录“,右键,选择”Mark Derictory as“,“Sources Root”