无法在 Ubuntu 18.04 上安装 django-import-export

Unable to install django-import-export on Ubuntu 18.04

当我尝试 pip install django-import-export 时,出现此错误:

No metadata found in /home/ubuntu/Desktop/dev/venv/lib/python3.6/site-packages
ERROR: Could not install packages due to an EnvironmentError: 
[Errno 2] No such file or directory: 
'/home/ubuntu/Desktop/dev/venv/lib/python3.6/site-packages/sqlparse-0.3.0.dist-info/METADATA'

感谢您的帮助

解决方法:

pip3 install --force-reinstall sqlparse