1
今天6月8日开始,在尝试与PIP安装pyScss当我看到这个错误:pyScss安装失败
$ pip install "pyScss>=1.1.5"
Downloading/unpacking pyScss>=1.1.5
Downloading pyScss-1.2.0.post3.tar.gz (94kB): 94kB downloaded
Running setup.py (path:/private/tmp/venv/build/pyScss/setup.py) egg_info for package pyScss
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __path__
Installed /private/tmp/venv/build/pyScss/six-1.7.0-py2.7.egg
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/venv/build/pyScss/setup.py", line 13, in <module>
from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
File "scss/__init__.py", line 69, in <module>
from scss.functions import ALL_BUILTINS_LIBRARY
File "scss/functions/__init__.py", line 5, in <module>
from scss.functions.core import CORE_LIBRARY
File "scss/functions/core.py", line 11, in <module>
from six.moves import xrange
File "/var/folders/v6/mg7h8rjd4bbf51n7dm1j00jc0000gn/T/easy_install-pX0iRW/six-1.7.0/six.py", line 187, in load_module
return sys.modules[fullname]
AttributeError: 'NoneType' object has no attribute 'modules'
Complete output from command python setup.py egg_info:
no previously-included directories found matching 'documentation/_build'
zip_safe flag not set; analyzing archive contents...
six: module references __path__
Installed /private/tmp/venv/build/pyScss/six-1.7.0-py2.7.egg
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/private/tmp/venv/build/pyScss/setup.py", line 13, in <module>
from scss.scss_meta import PROJECT, URL, VERSION, AUTHOR, AUTHOR_EMAIL, LICENSE, DOWNLOAD_URL
File "scss/__init__.py", line 69, in <module>
from scss.functions import ALL_BUILTINS_LIBRARY
File "scss/functions/__init__.py", line 5, in <module>
from scss.functions.core import CORE_LIBRARY
File "scss/functions/core.py", line 11, in <module>
from six.moves import xrange
File "/var/folders/v6/mg7h8rjd4bbf51n7dm1j00jc0000gn/T/easy_install-pX0iRW/six-1.7.0/six.py", line 187, in load_module
return sys.modules[fullname]
AttributeError: 'NoneType' object has no attribute 'modules'
----------------------------------------
Cleaning up...
这似乎是由今天的六1.7.0(同前安装工作释放被触发)。在pyScss安装的setup.py egg_info
阶段,似乎使用了6个。触发失败的“私人”六次安装。
注:
在一个单独的PIP命令安装pyScss之前安装6解决了这个,但
- 一个要求既
six==1.6.1
和pyScss
文件会以同样的方式失败。 - 所以将要求文件与
six==1.7.0
和pyScss
。
任何想法如何从需求文件安装pyScss而不需要单独的pip install six
步骤?
使用两个单独的pip命令的解决方法似乎只适用于较旧的点(1.1),而不适用于较新的1.5.4或1.5.6。 –