使用ensurepip安装pip

时间:2015-09-04 19:50:35

标签: python

我正在尝试确保在blender实例中安装了一个库。

我发现了很多关于ensurepip的信息并试图用它来安装pip。然后我可以安装外部库。

但是ensurepip.bootstrap()给出了以下错误:

ensurepip.bootstrap()
Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
  File "C:\Program Files\Blender Foundation\Blender\2.74\python\lib\ensurepip\__init__.py", line 116, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "C:\Program Files\Blender Foundation\Blender\2.74\python\lib\ensurepip\__init__.py", line 40, in _run_pip
import pip
  File "C:\Users\Ethan\AppData\Local\Temp\tmpqn93iwq6\pip-1.5.6-py2.py3-none-any.whl\pip\__init__.py", line 9, in <module>
  File "C:\Users\Ethan\AppData\Local\Temp\tmpqn93iwq6\pip-1.5.6-py2.py3-none-any.whl\pip\log.py", line 8, in <module>
  File "C:\Users\Ethan\AppData\Local\Temp\tmpqn93iwq6\pip-1.5.6-py2.py3-none-any.whl\pip\backwardcompat\__init__.py", line 98, in <module>
ImportError: No module named 'distutils'

0 个答案:

没有答案