将setuptools 1.4安装到Python 3.3.3的私有副本中

将setuptools 1.4安装到Python 3.3.3的私有副本中,python,installation,setuptools,python-3.3,Python,Installation,Setuptools,Python 3.3,我已经在Ubuntu13.10上的主目录下的一个目录中安装了Python 3.3.3的私有副本。然后,我使用以下命令尝试将setuptools安装到我的私有副本中,结果如下所示 jonathan@Hades:~/Downloads/Python/setuptools$ ../Python-3.3.3/python ez_setup.py Extracting in /tmp/tmpyx2c9o Now working in /tmp/tmpyx2c9o/setuptools-1.4 Instal

我已经在Ubuntu13.10上的主目录下的一个目录中安装了Python 3.3.3的私有副本。然后,我使用以下命令尝试将setuptools安装到我的私有副本中,结果如下所示

jonathan@Hades:~/Downloads/Python/setuptools$ ../Python-3.3.3/python ez_setup.py
Extracting in /tmp/tmpyx2c9o
Now working in /tmp/tmpyx2c9o/setuptools-1.4
Installing Setuptools
running install
error: can't create or remove files in install directory

The following error occurred while trying to add or remove files in the
installation directory:

    [Errno 2] No such file or directory: '/usr/lib/python3.3/site-packages/test-easy-install-6699.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /usr/lib/python3.3/site-packages/

This directory does not currently exist.  Please create it and try again, or
choose a different installation directory (using the -d or --install-dir
option).

Something went wrong during the installation.
See the error message above.
我还尝试了--user选项,该选项允许安装完成,但将内容放在我的
~/.locals
目录下,而不是我在私有Python安装的site packages目录中预期的位置


我原以为我的Python私有副本将负责找到正确的站点包目录,但显然这并没有发生。我需要做什么才能成功安装?

我正在尝试安装到我的主目录的子目录中,因此不需要sudo,也可能在我的私人区域中设置不正确的所有权。它似乎检查
/usr/lib/python3.3/站点包中的写入权限
-这就是我问的原因。什么是成功的安装?成功的安装是指将setuptools安装到我的私有Python 3.3.3安装的Lib/site packages目录中。这是使用VirtualEnvironment创建虚拟环境的第一步,但在获得VirtualEnvironment之前,我需要setuptools和pip。