在pycharm的插件里安装perl插件
安装 ActivePerl-5.28.1.0000-MSWin32-x64-432e1938.msi

配置cpan的ali源

打开cmd

perl -MCPAN -e shell

#1. 终端执行 cpan 命令
#bash: cpan
#2. 增加阿里源: 
cpan[1]> o conf urllist push https://mirrors.aliyun.com/CPAN/
cpan[2]> o conf commit

# 安装模块
cpan Log::Dispatch
#重新初始化配置
cpan> o conf init

更多推荐