我正在尝试使用对话框在VS2015 Python 2.7项目中安装numpy,如下所示:
运行它时,我收到以下消息:
You are using pip version 6.1.1, however version 8.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
C:\Python27\lib\site-packages\pip-6.1.1-py2.7.egg\pip\_vendor\requests\packages\urllib3\util\ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Command "C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\users\\dixon\\appdata\\local\\temp\\pip-build-rmjkhk\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\dixon\appdata\local\temp\pip-fxbttw-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\dixon\appdata\local\temp\pip-build-rmjkhk\numpy
'numpy' failed to install. Exit code: 1
我不确定为什么需要其他SSL上下文?我需要安装其他证书吗?
numpy
pip install
由于种种原因当前无法 在Windows上使用,而PTVS都无法为您解决。
编辑:numpy
最近上传的Windows轮子,所以pip install
可以工作。但是,在安装依赖于的其他预构建软件包时,您将需要小心numpy
,因为存在严格的兼容性限制,而pip不会强制执行这些限制。如果需要全套科学软件包,通常的建议仍然是安装Anaconda而不是python.org Python 。
SSL警告可能表明您具有Python 2.7.8或更早版本。2.7的更高版本包括改进的(即有效的)SSL支持,有助于确保您的连接不会被劫持。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句