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。 –