ERROR: Could not install packages due to an EnvironmentError: [Errno 2] 没有那个文件或目录 解决方法

pip 安装包时出现错误
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] 没有那个文件或目录: '/home/solejay/anaconda3/envs/kg/lib/python3.6/site-packages/pytz-2020.1.dist-info/METADATA'
解决方法:创建对应的文件即可
touch /home/solejay/anaconda3/envs/kg/lib/python3.6/site-packages/pytz-2020.1.dist-info/METADATA

你可能感兴趣的:(Python)