我在为 python安装astropy时遇到问题。当我在终端中输入“pip install astropy”时,我收到以下消息:
Collecting astropy
Using cached astropy-1.0.4.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 20, in <module>
File "/private/var/folders/8g/ggchkyrx1xv7jk9df887m1cr0000gq/T/pip-build-63p1fldn/astropy/setup.py", line 49, in <module>
adjust_compiler(NAME)
File "/private/var/folders/8g/ggchkyrx1xv7jk9df887m1cr0000gq/T/pip-build-63p1fldn/astropy/.eggs/astropy_helpers-1.0.3-py3.4.egg/astropy_helpers/setup_helpers.py", line 197, in adjust_compiler
if re.match(broken, version):
File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/re.py", line 160, in match
return _compile(pattern, flags).match(string)
TypeError: can't use a bytes pattern on a string-like object
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/private/var/folders/8g/ggchkyrx1xv7jk9df887m1cr0000gq/T/pip-build-63p1fldn/astropy
任何人都知道为什么会这样?