环境:
1.mac Catalina 10.15.7
2.Python版本 3.8
错误代码
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-thsXKy/pycurl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2Geh3A-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-thsXKy/pycurl/
网上各种解决方案都尝试过,并且都无效,尝试过的方法有:
1.pip的时候加--user参数;
2.安装openssl
3.添加openssl参数
4.pip install的时候添加各种参数
5.重装xcode-select
终极解决方案:
降低Python版本至 3.7,完美解决所有问题