异常导入SSLError,使用pip时的InsecurePlatformWarning,python3.4 win32

时间:2015-09-02 20:44:21

标签: python pip

我安装了Python 3.4.0,但我不能使用pip。那么我从python.org安装了pip。然后我设置了PATH。 当我使用pip时,会报告这些:

  C:\Users\think\Downloads\pip-7.1.2>pip
    Traceback (most recent call last):
      File "C:\Python34\lib\runpy.py", line 171, in _run_module_as_main
        "__main__", mod_spec)
      File "C:\Python34\lib\runpy.py", line 86, in _run_code
        exec(code, run_globals)
     ...
  File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\conn
ectionpool.py", line 33, in <module>
    from .connection import (
  File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\conn
ection.py", line 41, in <module>
    from .util import (
  File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\util
\__init__.py", line 5, in <module>
    from .ssl_ import (
  File "C:\Python34\lib\site-packages\pip\_vendor\requests\packages\urllib3\util
\ssl_.py", line 4, in <module>
    from ..exceptions import SSLError, InsecurePlatformWarning
ImportError: cannot import name 'InsecurePlatformWarning'

Win32上的Python3.4.0

1 个答案:

答案 0 :(得分:0)

请确保您正在运行在python版本的include路径中安装的pip模块。

您可以通过foreach ($_POST as $key => $value) 执行此操作。如果失败了,你可能没有合适的模块。

此外,您可能希望使用python -m pip install <somemodule>

仅为当前用户安装模块