pip install pyknotid发生的问题

某windows系统笔记本: pip install pyknotid发生问题:
ERROR: Command errored out with exit status 1:      command: 'D:\Program Files (x86)\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-t1frcae0\\planarity\\setup.py'"'"'; __file__='"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-t1frcae0\\planarity\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\xxx\AppData\Local\Temp\pip-record-09814cs_\install-record.txt' --single-version-externally-managed --compile          cwd: C:\Users\xxx\AppData\Local\Temp\pip-install-t1frcae0\planarity\     Complete output (20 lines):     running install     running build     running build_py     creating build     creating build\lib.win-amd64-3.7     creating build\lib.win-amd64-3.7\planarity     copying planarity\planarity_functions.py -> build\lib.win-amd64-3.7\planarity     copying planarity\planarity_networkx.py -> build\lib.win-amd64-3.7\planarity     copying planarity\__init__.py -> build\lib.win-amd64-3.7\planarity     creating build\lib.win-amd64-3.7\planarity\tests     copying planarity\tests\test.py -> build\lib.win-amd64-3.7\planarity\tests     copying planarity\tests\test_planarity.py -> build\lib.win-amd64-3.7\planarity\tests     copying planarity\tests\test_planarity_networkx.py -> build\lib.win-amd64-3.7\planarity\tests     copying planarity\tests\__init__.py -> build\lib.win-amd64-3.7\planarity\tests     running build_ext     cythoning planarity/planarity.pyx to planarity\planarity.c     D:\Program Files (x86)\python\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\xxx\AppData\Local\Temp\pip-install-t1frcae0\planarity\planarity\planarity.pyx       tree = Parsing.p_module(s, pxd, full_module_name)     building 'planarity.planarity' extension     error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": Download Visual Studio Tools - Install Free for Windows, Mac, Linux     ---------------------------------------- ERROR: Command errored out with exit status 1: 'D:\Program Files (x86)\python\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-t1frcae0\\planarity\\setup.py'"'"'; __file__='"'"'C:\\Users\\xxx\\AppData\\Local\\Temp\\pip-install-t1frcae0\\planarity\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\xxx\AppData\Local\Temp\pip-record-09814cs_\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
解决: 初入python大坑之pip install(包安装)问题 - 知乎 下载并安装了Visual Studio 2017 Build Tool (Community),选择workload中的desktop development with c++

再次尝试pip install,则回到以前的博客 所述的情况,按记录解决即可。

上一篇:python: can‘t open file ‘manage.py‘: [Errno 2] No such file or directory


下一篇:git 使用教程v2