Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.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
Can';t安装几个Python软件包_Python_Package_Twisted_Pip_Easy Install - Fatal编程技术网

Can';t安装几个Python软件包

Can';t安装几个Python软件包,python,package,twisted,pip,easy-install,Python,Package,Twisted,Pip,Easy Install,我的系统上安装了easy_install和pip。我尝试安装了许多不同的软件包,如Twisted和Scrapy,并不断收到以下错误消息: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_vagrant/cryptography 我正在运行OSX10.9,并在我的本地机器上以及vagrant中的Ubuntu虚拟机上进行了尝试。不管我做什么,我总是得到上面错误的一些变化。奇怪的是,我可以安装一些

我的系统上安装了easy_install和pip。我尝试安装了许多不同的软件包,如Twisted和Scrapy,并不断收到以下错误消息:

Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_vagrant/cryptography
我正在运行OSX10.9,并在我的本地机器上以及vagrant中的Ubuntu虚拟机上进行了尝试。不管我做什么,我总是得到上面错误的一些变化。奇怪的是,我可以安装一些软件包,比如Flask、Django和其他一些

我使用virtualenv尝试过这个,但没有效果

以下是一个错误示例:

Command /Users/meblumen/Desktop/Virtual_Environments/scraper/bin/python -c "import setuptools, tokenize;__file__='/Users/user1/Desktop/Virtual_Environments/scraper/build/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/bs/lkq_06gs33s1s_56zywwds2w0000gn/T/pip-Wk9wD5-record/install-record.txt --single-version-externally-managed --compile --install-headers /Users/user1/Desktop/Virtual_Environments/scraper/include/site/python2.7 failed with error code 1 in /Users/user1/Desktop/Virtual_Environments/scraper/build/lxml
Storing debug log for failure in /Users/user1/.pip/pip.log

这是在尝试使用
pip install lxml
安装lxml之后发生的。如果您有任何见解,我们将不胜感激。

请提供更多信息:完整的错误消息、您安装的东西的版本、您输入的命令的确切顺序、您的环境,特别是您如何安装pip和easy_install。我正在运行Python 2.7。我通过easy_install在我的OS X安装上安装了pip。在Ubuntu中,它是使用setuptools安装的。从命令的角度来看,我输入的是:pip install[package name],其中[package name]类似于:twisted或scrapy。我也尝试过:easy_install scrapy您仍然没有正确描述失败。请尝试在问题中包含您的安装尝试的完整记录。例如,当您说“via easy_install”时,您使用的easy_install命令行是什么?您是先安装了easy_install的新版本还是使用了system one?@Glyph,回答您的问题,我相信我使用了system版本。我试着用virtualenv在一个流浪的ubuntu虚拟机上进行安装。我更新了我的帖子,以包含我收到的1条错误消息的完整性。我想知道的一件事可能是我在一周前安装了Anaconda来试用scikit learn、panda等软件。。。包装。这可能和我的道路有关吗?很抱歉问了这么多愚蠢的问题,但我对这一点非常陌生,显然很困惑。