簡體   English   中英

多個Python安裝 - easy_install和pip都失敗了

[英]Multiple Python Installations - both easy_install and pip fail

我有一個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

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

您正在安裝可能不安全且無法驗證的文件。 未來版本的pip將默認禁用不安全的文件。

  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; make; make install configure; make; make install configure; make; make install

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM