django 学习问题解答

问题1

当用pycharm 编辑器安装django-bootstrap3 时
$pip3 install django-bootstrap3
 
遇到以下错误:



 

Collecting django-bootstrap3==8.2.3
  Using cached django-bootstrap3-8.2.3.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/hh/Library/Python/3.6/lib/python/site-packages/setuptools/__init__.py", line 10, in <module>
        from six.moves import filter, map
    ModuleNotFoundError: No module named 'six'
    
    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/mb/8cw7c6tx5_3bc9gjkvw6xgd80000gp/T/pycharm-packaging/django-bootstrap3/
 解决方法:
$ brew install brew install gcc@5
$ pip3 install djanjo-bootstrap3

猜你喜欢

转载自huangcaiyan.iteye.com/blog/2373681