安装Python包:缺少目录

安装Python包:缺少目录,python,python-2.7,Python,Python 2.7,我目前正在尝试安装一些python软件包,但似乎不明白为什么它不起作用。运行ez_安装时,我遇到以下错误: $ easy_install scipy 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 fi

我目前正在尝试安装一些python软件包,但似乎不明白为什么它不起作用。运行ez_安装时,我遇到以下错误:

$ easy_install scipy
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: '/Users/blackbird/Library/Python/2.7/site-packages/test-easy-install-5544.write-test'

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

/Users/blackbird/Library/Python/2.7/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).

我已经进入了我的库,但是Python文件夹不存在。很明显,我可以手动创建它,但这是否表明我做了其他错误或缺少了什么?

您应该使用
pip
,而不是
easy\u install
@simeon visser当我尝试安装pip时,我会收到相同的错误。我无法安装任何软件包。您是否尝试使用easy\u install安装pip?它应该使用get-pip.py文件安装。请阅读官方教程如何安装Python软件包-您不应该在系统范围的Python安装上安装它们: