Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/299.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
多个Python安装-easy_安装和pip都失败_Python_Python 2.7_Python 3.x_Pip_Easy Install - Fatal编程技术网

多个Python安装-easy_安装和pip都失败

多个Python安装-easy_安装和pip都失败,python,python-2.7,python-3.x,pip,easy-install,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-3.3 --install-dir="/usr/lo

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

易于安装

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安装——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\u install
pip
都用于安装Python软件包,而不是安装Python本身


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

您实际使用的命令是什么?实际命令显示在问题中:easy\u install-3.3--install dir=“/usr/local/python33”python==3.3.3和pip-3.3安装——target/usr/local/python33 python==3.3.3。我非常确定使用
pip
安装python是可能的,但virtualenv肯定是更好的安装工具choice@LoïcFaure Lacroix安装python的标准方法是配置;制作我对virtualenv的理解是,它为每个版本分别进行基础安装。我正在尝试设置基本安装。@user96然后下载要安装的python版本并安装它们。:-)@莱纳特·雷杰布罗角。我花了太多时间试图安装二进制文件。森林、树木等。