python - 多个 Python 安装 - easy_install 和 pip 均失败

标签 python python-2.7 python-3.x pip easy-install

我有 Python 3.3.3 的系统级安装,并且我想在/usr/local/python33 的用户空间中设置安装,作为多版本 virtualenv 类型设置的一部分。我创建了该目录,并尝试使用 easy_install 和 pip(作为系统级安装中的 easy_install-3.3 和 pip-3.3)将 Python 3.3.3 的副本放在那里。没有喜悦。两次尝试的日志如下所示。我认为这应该是简单的,但我的信心如果下降。

EASY_INSTALL

easy_install-3.3 --install-dir="/usr/local/python33" python==3.3.3
Creating /usr/local/python33/site.py
Searching for python==3.3.3
Reading https://pypi.python.org/simple/python/
Reading http://www.python.org
Reading http://www.python.org/2.3
Reading http://www.python.org/2.4
Reading http://www.python.org/2.4.1
Reading http://www.python.org/2.5
Reading http://www.python.org/download/
Best match: Python 3.3.3
Downloading http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tgz
Processing Python-3.3.3.tgz
Writing /var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/easy_install-3cjpwy/Python-3.3.3/setup.cfg
Running Python-3.3.3/setup.py -q bdist_egg --dist-dir /var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/easy_install-3cjpwy/Python-3.3.3/egg-dist-tmp-3me0es
error: Setup script exited with error: Modules/Setup: No such file or directory

画中画

pip-3.3 install --target/usr/local/python33 python==3.3.3

您正在安装一个可能不安全且无法验证的文件。 pip 的 future 版本将默认不允许不安全的文件。

  Downloading from URL http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tgz (from http://www.python.org/download/)
  Running setup.py egg_info for package python

    running egg_info
    creating pip-egg-info/Python.egg-info
    writing dependency_links to pip-egg-info/Python.egg-info/dependency_links.txt
    writing top-level names to pip-egg-info/Python.egg-info/top_level.txt
    writing pip-egg-info/Python.egg-info/PKG-INFO
    writing manifest file 'pip-egg-info/Python.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found


    reading manifest file 'pip-egg-info/Python.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/Python.egg-info/SOURCES.txt'
  Source in /private/var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/pip_build_tipton/python has version 3.3.3, which satisfies requirement python==3.3.3
Installing collected packages: python

  Running setup.py install for python

    Running command /Library/Frameworks/Python.framework/Versions/3.3/bin/python3.3 -c "import setuptools;__file__='/private/var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/pip_build_tipton/python/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/pip-x_pk9r-record/install-record.txt --single-version-externally-managed --home=/var/folders/l0/14nc8kh968l6kqp86s5ddxph0000gn/T/tmpf4gi0e
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

       or: -c --help [cmd1 cmd2 ...]

       or: -c --help-commands

       or: -c cmd --help



    error: option --single-version-externally-managed not recognized

最佳答案

easy_installpip 都是用于安装 Python 包,而不是用于安装 Python 本身。

如何安装 Python 取决于您的操作系统。对于 Unices,您通常运行标准 configure;制作;进行安装

关于python - 多个 Python 安装 - easy_install 和 pip 均失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20622772/

相关文章:

python - 在 Flask 中返回响应

python - 如何在不检查页面的情况下让 pelican 包含 content/some_dir?

python - 重复 if 直到 true [python]

python - 如何在 Python 2 中加载 Python 3 Pickled SKlearn 模型

python 2 打印带有浮点格式且没有行返回的数组

python - PyQt 打印原始 PDF

python - 创建一个单独的列,列出所有购买的列表,除了 python pandas 数据框中第一次出现的情况

python - 方法的 __file__ 属性如何成为类而不是实例?

python - 从网络驱动器上的目录检索内容 (windows)

python - _tkinter.TclError : encountered an unsupported criticial chunk type "exIf"