用的 Mac OS 系统,装的 Python3.6,电脑自带 2.7,用命令行 venv 创建虚拟环境中有两个版本的 Python、easy_install 和 pip,用命令行模式 pip 安装第三方包可以成功,但是用 pycharm 安装就不行,即使更新了 pip,还是报错。
for your Python interpreter located at '/Users/chunkzhang/PycharmProjects/CKBlog/venv/bin/python'.
Command "/Users/chunkzhang/PycharmProjects/CKBlog/venv/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/xz/hj80mvx901s1nkxsjds5vhm00000gn/T/pycharm-packaging/FlaskWTF/
setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/xz/hj80mvx901s1nkxsjds5vhm00000gn/T/pip-record-mp4vv0f5/install-record.txt --single-version-externally-managed --compile --install-headers /Users/chunkzhang/PycharmProjects/CKBlog/venv/include/site/python3.6/FlaskWTF" failed with error code 1 in /private/var/folders/xz/hj80mvx901s1nkxsjds5vhm00000gn/T/pycharm-packaging/FlaskWTF/
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
https://www.v2ex.com/t/506113
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.