我尝试在gcp虚拟机上安装matplotlib (第三方库),但失败了。
gcp vm python文档说的是use pip install -t lib/ <library_name>,但实际上,它们的真正含义是: i.g。use pip install matplotlib -t lib/ <library_name>,但它不起作用
我试过了:
sudo pip install matplotlib -t env/gcplib结果:
"**Failed building wheel for subprocess32**"
"Command "/usr/bin/python -u -c "import setuptools,
tokenize;__file__='/tmp/pip-install-Rpkv8i/subprocess32/setup.py
';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __fi
le__, 'exec'))" install --record /tmp/pip-record-x4Y1E4/install-record.txt --single-version-externally-managed --co
mpile" **failed with error code 1** in /tmp/pip-install-Rpkv8i/subprocess32/"我将非常感谢任何人的帮助
发布于 2019-03-27 23:28:27
在尝试安装matplotlib之前,您需要安装python-dev。你没有提到你的虚拟机是什么操作系统,但如果它是Ubuntu,你会这样做:
sudo apt-get install python-devhttps://stackoverflow.com/questions/55373738
复制相似问题