Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在Ubuntu 18.04上安装django导入导出_Django_Ubuntu 18.04 - Fatal编程技术网

无法在Ubuntu 18.04上安装django导入导出

无法在Ubuntu 18.04上安装django导入导出,django,ubuntu-18.04,Django,Ubuntu 18.04,当我尝试pip安装django导入导出时,出现以下错误: 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/python

当我尝试pip安装django导入导出时,出现以下错误:

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

一个可能的解决方案也许在这里:谢谢,我找到了一个解决方案