spyder5 使用 PDM 包管理器管理虚拟环境
第一步:修改 Spyder 的默认 python interpreter。
1. click the name of the current environment in the status bar, and then click 【Change default environment in Preferences】。
2. 在 【Python interpreter】 --> 【Use the following Python interpreter】中选择 PDM 生成的 __pypackages__/<major.minor>/bin 。
第二步:在 【PYTHONPATH manager】功能中设置 lib 的位置。
1. 点击【PYTHONPATH manager】--> 【Add path】 选择 PDM 生成的 __pypackages__/<major.minor>/lib 文件夹。
posted on 2022-12-09 00:36 capitalismx 阅读(222) 评论(0) 收藏 举报
浙公网安备 33010602011771号