如何在Windows上为python 3.3安装pip?

时间:2019-06-27 21:22:39

标签: pip python-3.3

我必须安装python 3.3.5,才能将API用于OriginPro。但是,当我尝试通过下载get-pip.py并在cmd提示符下的python中运行它来安装pip安装管理器时,出现以下错误

C:\Users\hsurdi\Documents>python get-pip.py
Traceback (most recent call last):
  File "get-pip.py", line 21492, in <module>
    main()
  File "get-pip.py", line 197, in main
    bootstrap(tmpdir=tmpdir)
  File "get-pip.py", line 82, in bootstrap
    import pip._internal
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\__init__.py", line 40, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\cli\autocompletion.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\cli\main_parser.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\cli\cmdoptions.py", line 22, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\utils\hashes.py", line 10, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_internal\utils\misc.py", line 20, in <module>
  File "<frozen importlib._bootstrap>", line 1565, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1532, in _find_and_load_unlocked
  File "c:\users\hsurdi\appdata\local\temp\tmph5uqmw\pip.zip\pip\_vendor\pkg_resources\__init__.py", line 92, in <module>
RuntimeError: Python 3.4 or later is required

在哪里/如何获得python 3.3.5的点子?

1 个答案:

答案 0 :(得分:0)

pip放弃了对Python 3.3版本18.0的支持。 setuptoolspip要求)放弃了对Python 3.3版本40.0的支持。因此,您需要下载pip 10.0.1setuptools 39.2.0(源分发,*.tar.gz)。提取档案,然后先对python setup.py install运行setuptools,然后对pip运行。

关于numpy和scipy的最新版本,让我们看看。

脾气暴躁:https://pypi.org/project/numpy/
要求:Python> = 2.7,!= 3.0。*,!= 3.1。*,!= 3.2。*,!= 3.3。*

scipy:https://pypi.org/project/scipy/
 要求:Python > = 3.5

看到了吗?您将需要进行研究以找出与Python 3.3兼容的版本。