mac下的pycharm不能安装Django 5
macos里,pycharm在preference-->projectinterpreter-->+-->Django下载Django的时候安装失败了Installpac...
mac os里,pycharm 在preference-->project interpreter -->+-->Django 下载Django的时候安装失败了
Install packages failed: Error occurred when installing package Django.
The following command was executed:
packaging_tool.py install --build-dir /private/var/folders/1f/dz4kq57d4b19s4tfmds1mysh0000gn/T/pycharm-packaging4704637790798671001.tmp --user Django
The error output of the command:
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 125, in main
retcode = do_install(pkgs)
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 56, in do_install
import pip
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/util.py", line 17, in <module>
from pip.vendor.distlib import version
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/vendor/distlib/version.py", line 13, in <module>
from .compat import string_types
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/vendor/distlib/compat.py", line 276
return b''
^
SyntaxError: invalid syntax
这是错误详细。。。求大神解答 展开
Install packages failed: Error occurred when installing package Django.
The following command was executed:
packaging_tool.py install --build-dir /private/var/folders/1f/dz4kq57d4b19s4tfmds1mysh0000gn/T/pycharm-packaging4704637790798671001.tmp --user Django
The error output of the command:
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 125, in main
retcode = do_install(pkgs)
File "/Applications/PyCharm.app/helpers/packaging_tool.py", line 56, in do_install
import pip
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/__init__.py", line 10, in <module>
from pip.util import get_installed_distributions, get_prog
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/util.py", line 17, in <module>
from pip.vendor.distlib import version
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/vendor/distlib/version.py", line 13, in <module>
from .compat import string_types
File "/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/vendor/distlib/compat.py", line 276
return b''
^
SyntaxError: invalid syntax
这是错误详细。。。求大神解答 展开
展开全部
可能是你的Python版本太低,请更新到最新Python版本
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
贴出你的这个文件/Library/Python/2.5/site-packages/pip-1.4.1-py2.5.egg/pip/vendor/distlib/compat.py的第276行,return b''的上下30行
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询