警告:'pysqlite3' 的 wheel 旧版本未创建任何文件。 - 如何构建非遗留版本的轮子?
WARNING: Legacy build of wheel for 'pysqlite3' created no files. - How do I build a non-legacy build of wheels?
我尝试在我的 AWS EC2 实例上安装一个程序包 (https://github.com/lucidrains/stylegan2-pytorch)。我已经安装了 Python 3.7 并尝试通过 运行:
安装软件包
python3.7 -m pip install stylegan2_pytorch
它成功安装了很多东西,但突然出现以下错误:
Building wheels for collected packages: pysqlite3
Building wheel for pysqlite3 (setup.py) ... done
WARNING: Legacy build of wheel for 'pysqlite3' created no files.
Command arguments: /usr/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vszwoeo2/pysqlite3_3da8bd243f194e7b910604541c09f525/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vszwoeo2/pysqlite3_3da8bd243f194e7b910604541c09f525/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-i7fy88qv
Command output: [use --verbose to show]
Running setup.py clean for pysqlite3
Failed to build pysqlite3
Installing collected packages: pysqlite3
Running setup.py install for pysqlite3 ... done
Successfully installed pysqlite3
因为我对 Python 版本控制和其他东西的美妙世界还很陌生,所以我不知道这意味着什么。我的 sqlite 数据库(我显然有?)是旧版本吗?
我该如何解决这个问题才能继续?
通过使用 --verbose
-flag 我看到了:
src/connection.h:27:20: fatal error: Python.h: No such file or directory
这个帖子当时帮助了我:
我指定了 python 版本(在我的例子中是 3.7):
sudo apt-get install python3.7-dev
然后成功了!
我尝试在我的 AWS EC2 实例上安装一个程序包 (https://github.com/lucidrains/stylegan2-pytorch)。我已经安装了 Python 3.7 并尝试通过 运行:
安装软件包python3.7 -m pip install stylegan2_pytorch
它成功安装了很多东西,但突然出现以下错误:
Building wheels for collected packages: pysqlite3
Building wheel for pysqlite3 (setup.py) ... done
WARNING: Legacy build of wheel for 'pysqlite3' created no files.
Command arguments: /usr/bin/python3.7 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-vszwoeo2/pysqlite3_3da8bd243f194e7b910604541c09f525/setup.py'"'"'; __file__='"'"'/tmp/pip-install-vszwoeo2/pysqlite3_3da8bd243f194e7b910604541c09f525/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-i7fy88qv
Command output: [use --verbose to show]
Running setup.py clean for pysqlite3
Failed to build pysqlite3
Installing collected packages: pysqlite3
Running setup.py install for pysqlite3 ... done
Successfully installed pysqlite3
因为我对 Python 版本控制和其他东西的美妙世界还很陌生,所以我不知道这意味着什么。我的 sqlite 数据库(我显然有?)是旧版本吗?
我该如何解决这个问题才能继续?
通过使用 --verbose
-flag 我看到了:
src/connection.h:27:20: fatal error: Python.h: No such file or directory
这个帖子当时帮助了我:
我指定了 python 版本(在我的例子中是 3.7):
sudo apt-get install python3.7-dev
然后成功了!