我之前已经用Python2.7覆盖了/usr/bin/python。CentOS需要Python2.6.6,但我已经重新安装了Python2.6.6。然而,yum仍然不起作用。
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that th
>>> import scrapy
>>> from scrapy.selector import HtmlXPathSelector
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/Scrapy-0.14.4-py2.7.egg/scrapy/selector /__init__.py", line 28, i
当尝试在Mac上使用brew安装的Python2.7创建虚拟环境时,我得到以下错误:
Could not install packages due to an EnvironmentError:
[Errno 13] Permission denied: '/lib'
全部产出:
▶ virtualenv ./virtualenv
New python executable in /Users/alexharvey/git/home/sam-test/virtualenv/bin/python2.7
Also creating executa